Prev: power systems analysis-transient stability
Next: SOM map dimensions, learning rate, number of iterations......
From: Patricio on 26 Apr 2010 23:43 I have a MuPad Procedure. How can I call it from an M-file?
From: Wayne King on 27 Apr 2010 04:38 "Patricio " <patricio.basso(a)gmail.com> wrote in message <hr5mg7$svd$1(a)fred.mathworks.com>... > I have a MuPad Procedure. How can I call it from an M-file? Hi Patricio, use feval(symengine,'MuPad_function',inputs) Ex: Z = feval(symengine,'arctan',pi/4); double(Z) Hope that helps, Wayne
From: Patricio on 28 Apr 2010 14:39
"Wayne King" <wmkingty(a)gmail.com> wrote in message <hr67pb$a7a$1(a)fred.mathworks.com>... > "Patricio " <patricio.basso(a)gmail.com> wrote in message <hr5mg7$svd$1(a)fred.mathworks.com>... > > I have a MuPad Procedure. How can I call it from an M-file? > > Hi Patricio, > > use > > feval(symengine,'MuPad_function',inputs) > > Ex: > > Z = feval(symengine,'arctan',pi/4); > double(Z) > > Hope that helps, > Wayne Dear Wayne: Thanks for your help. Unfortunately it seems that feval does not accept users made procedures but only MuPAD functions. As exemple, feval does not accept the following procedure: cotasup := proc(f, a, b) name cotasup; begin x := hull(a, b); F := f; op(F, 2) end_proc: thats works well in MuPad. Patricio |