フィルターのクリア

non-linear equations solution in matlab

1 回表示 (過去 30 日間)
Chithralekha
Chithralekha 2012 年 11 月 30 日
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

回答 (2 件)

Walter Roberson
Walter Roberson 2012 年 11 月 30 日
Change to
syms w0 w1 w2

Thomas
Thomas 2012 年 11 月 30 日
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;

カテゴリ

Help Center および File ExchangeFormula Manipulation and Simplification についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by