Filter löschen
Filter löschen

non-linear equations solution in matlab

1 Ansicht (letzte 30 Tage)
Chithralekha
Chithralekha am 30 Nov. 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

Antworten (2)

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

Thomas
Thomas am 30 Nov. 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;

Kategorien

Mehr zu Formula Manipulation and Simplification finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by