From: Gela on 20 May 2010 10:13 Hallo i have 9 nonlinear equations,like (Z =a* x^4+ b*y^4+.....) , and 9 unknowns, so i have tried to solve this with the solve function, but as result i become a long term as string how can i change this strings so that matlab would take them as commands, so that i can have a nummber as the result??? thanks in advace for your ansewrs?? PS: i am just a starter here, and i have also looked after fsolve but it doesnt do the right thing;((
From: Steven Lord on 20 May 2010 10:31 "Gela " <gilda6485(a)yahoo.com> wrote in message news:ht3g1i$h59$1(a)fred.mathworks.com... > Hallo > i have 9 nonlinear equations,like (Z =a* x^4+ b*y^4+.....) , and 9 > unknowns, so i have tried to solve this with the solve function, but as > result i become a long term as string how can i change this strings so > that matlab would take them as commands, so that i can have a nummber as > the result??? > thanks in advace for your ansewrs?? > > PS: i am just a starter here, and i have also looked after fsolve but it > doesnt do the right thing;(( Use VPA, SUBS, or DOUBLE (this last only works if those expressions contain no symbolic variables.) -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com
From: Walter Roberson on 20 May 2010 10:46 Gela wrote: > i have 9 nonlinear equations,like (Z =a* x^4+ b*y^4+.....) , and 9 > unknowns, so i have tried to solve this with the solve function, but as > result i become a long term as string how can i change this strings so > that matlab would take them as commands, so that i can have a nummber as > the result??? See matlabFunction() http://www.mathworks.com/access/helpdesk/help/toolbox/symbolic/matlabfunction.html
From: Gela on 21 May 2010 14:49 thx for your rapid ansewrs, i have done with eval();
|
Pages: 1 Prev: Does the Radon transform work with NaNs? Next: mbuild -setup doesn't see my compiler |