3 sequential equations doesn't solve.. some help plz
Afficher commentaires plus anciens

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???
Réponse acceptée
Plus de réponses (1)
chul hyun kwag
le 24 Oct 2012
Modifié(e) : chul hyun kwag
le 24 Oct 2012
0 votes
1 commentaire
Andrei Bobrov
le 24 Oct 2012
>> 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]
Catégories
En savoir plus sur Numeric Solvers dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!