Borrar filtros
Borrar filtros

function with "solve()"...help me..?

1 visualización (últimos 30 días)
Tung
Tung el 25 de Mzo. de 2013
Hi all, I have a problem.. Solve this equation: sinx+cos(2*x)==1. when I use Matlab:
solve(sin(x) + cos(2*x) == 1, x)
ans =
0
pi/6
(5*pi)/6
But I want to display all values of "x" when x=[-2*pi:2*pi]. Plz help me......thanks,

Respuestas (1)

Walter Roberson
Walter Roberson el 25 de Mzo. de 2013
The solve() accessible directly from MATLAB cannot do that. Use the MuPAD solve()
feval(symengine, 'solve', sin(x) + cos(2*x) == 1, sym('x = -2*pi .. 2*pi'))

Categorías

Más información sobre Get Started with MuPAD en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by