Effacer les filtres
Effacer les filtres

non-linear equations solution in matlab

1 vue (au cours des 30 derniers jours)
Chithralekha
Chithralekha le 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

Réponses (2)

Walter Roberson
Walter Roberson le 30 Nov 2012
Change to
syms w0 w1 w2

Thomas
Thomas le 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;

Catégories

En savoir plus sur Formula Manipulation and Simplification dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by