Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Create MATLAB Functions from MuPAD Expressions(R2013a)

1 visualización (últimos 30 días)
Mohamed Elkomy
Mohamed Elkomy el 15 de Mzo. de 2014
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I create a mupad file that contains the following:
x := r*sin(a)*cos(b):
y := r*sin(a)*sin(b):
z := r*cos(b):
S := matrix([x, y, z]):
then I create a handle to it from Matlab command line nb1=mupad('file.mn')
I then call : S = getVar(nb1,'S')
then h = matlabFunction(S)
when I should get :
h =
@(a,b,r)[r.*cos(b).*sin(a);r.*sin(a).*sin(b);r.*cos(b)]
I get :
h =
@(S)S
can any one help?

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by