3 sequential equations doesn't solve.. some help plz
이전 댓글 표시

the three equations are on the image
for this I wrote the following code:
>> syms vth vs id
>> eq1=-vth+0.5+0.4*((0.6+vs)^0.5-0.6^0.5);
>> eq2=-id+0.5*9*10^-4*(2.5-vs-vth)^2;
>> eq3=-vs+2*1000*id;
>> S=solve(eq1,eq2,eq3,vth,vs,id)
but there comes the error:
*??? Error using ==> mupadmex Error in MuPAD command: symbolic parameters not allowed in non-polynomial equations [numeric::solve]
Error in ==> sym.sym>sym.mupadmexnout at 2003 out = mupadmex(fcn,args{:});
Error in ==> solve at 76 [symvars,R] = mupadmexnout('mllib::solvefull',eqns,vars);*
--> i don't know what i've done wrong. my MATLAB version is 7.10.0(R2010a)
p.s. as for the code, I was trying to get a matrix S which contains the solutions of the three equations and I would've obtained the individual solutions by S.vth, S.id, S.vs
anyway... whats the problem here???
채택된 답변
추가 답변 (1개)
chul hyun kwag
2012년 10월 24일
편집: chul hyun kwag
2012년 10월 24일
0 개 추천
댓글 수: 1
Andrei Bobrov
2012년 10월 24일
>> syms x y z
eq1 = -x+0.5+0.4*((0.6+y)^0.5-0.6^0.5);
eq2 = -z+0.5*9*10^-4*(2.5-y-x)^2;
eq3 = -y+2*1000*z;
roots1 = solve(eq1,eq2,eq3,x, y, z)
roots1 =
x: [4x1 sym]
y: [4x1 sym]
z: [4x1 sym]
카테고리
도움말 센터 및 File Exchange에서 Numeric Solvers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!