From: Patricio on
I have a MuPad Procedure. How can I call it from an M-file?
From: Wayne King on
"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
"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