help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fsolve- add to other program


From: Leo07nard
Subject: Re: Fsolve- add to other program
Date: Fri, 21 Aug 2015 06:17:35 -0700 (PDT)

Thank you dear Tatsuro,
 Have you kindly solve these lines by yourself? Because in my system it does
not work and I have an error about definition of Omega and Q! it is my lines
and the error:
%---------
muk=@(Omega,Q)  Lambda.*Omega.*(Rk(Q)-R);
mue=@(Omega,Q)  Lambda.*Omega.*(R+h.*(1-R));
mun=@(Omega,Q)  Lambda*Omega*R;

phi=@(Omega,Q)   mue(Omega,Q)./muk(Omega,Q);
D=@(xe1) delta*exp(2.1* xe1);

f=@(xe1, Omega, Q) 
((mue(Omega,Q)/muk(Omega))*(delta*exp(xe1)-muk(Omega,Q))-(mue(Omega,Q)*xe1+mun(Omega,Q)));
xe=@(Omega,Q) fsolve(@(xe1) f (xe1,Omega,Q), 0)
%--------------------

error: 'Q' undefined near line 23 column 36
error: evaluating argument list element number 1!!!!!
....



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Fsolve-add-to-other-program-tp4672189p4672210.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]