필터 지우기
필터 지우기

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 CenterFile Exchange에서 Formula Manipulation and Simplification에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by