Borrar filtros
Borrar filtros

non-linear equations solution in matlab

1 visualización (últimos 30 días)
Chithralekha
Chithralekha el 30 de Nov. de 2012
when i tried this program code to solve w0,w1,w2, i got a error message that"undefined function or variable w1.the program code is
syms w0,w1,w2
exp1=(w0^2+w1^2+w2^2)-A0;
exp2=(2*w1*(w0+w2))-A1;
exp3=(2*w0*w2)-A2
sol=solve(exp1,exp2,exp3);
sol.w0;
sol.w1;
sol.w2;
please help me

Respuestas (2)

Walter Roberson
Walter Roberson el 30 de Nov. de 2012
Change to
syms w0 w1 w2

Thomas
Thomas el 30 de Nov. de 2012
syms w0 w1 w2 A0 A1 A2
exp1=(w0^2+w1^2+w2^2)-A0;
exp2=(2*w1*(w0+w2))-A1;
exp3=(2*w0*w2)-A2
sol=solve(exp1,exp2,exp3);
sol.w0;
sol.w1;
sol.w2;

Categorías

Más información sobre Formula Manipulation and Simplification en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by