Prev: reshape
Next: plotyy
From: Martin on
Dear group,

I try to solve a problem using the symbolic toolbox of matlab. the site version is 2009b.
While a similar example with less equations is solved properly, the code below exits with the error:

%%%%
Warning: Explicit solution could not be found.
> In solve at 81
In rodney at 8

S =

[ empty sym ]

%%%%

I know that this was a common problem in the old MuPad versions, but since I have one example working, I wonder what is wrong with this one. Could someone please have a look at the code, it might be something obviously wrong with it and I just do not see it in the moment...

Best Regards

%%%Code%%%
clear all

syms h3p h2p hp p c coh cp chp ch2p...
chp2s m mp moh mhp mh2p h oh ct...
pt mt ksp ka kb kc kd ke kf kg kh ki kj kk kl;

S = solve('ka=h2p*h/h3p',...
'kb=hp*h/h2p',...
'kc=p*h/hp',...
'kd=cp/c/p',...
'ke=coh/c/oh',...
'kf=chp/c/hp',...
'kg=ch2p/c/h2p',...
'kh=oh*h',...
'ki=mp/m/p',...
'kj=moh/m/oh',...
'kk=mhp/m/hp',...
'kl=mh2p/mhp/m',...
'ksp=c*hp',...
'ct=c+cp+coh+chp+ch2p+chp2s',...
'pt=h3p+h2p+hp+p+cp+chp+ch2p+chp2s+mp+mhp+mh2p',...
'mt=m+mp+moh+mhp+mh2p',...
'h=h2p+2*hp+3*p+oh+cp+mp-2*c-2*m-coh-moh-ch2p-mh2p',...
'h3p,h2p,hp,p,c,coh,cp,chp,ch2p,chp2s,m,mp,moh,mhp,mh2p,h,oh')
%%%Code%End%%%
 | 
Pages: 1
Prev: reshape
Next: plotyy