Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Create MATLAB Functions from MuPAD Expressions(R2013a)
1 回表示 (過去 30 日間)
古いコメントを表示
I tried Running the Example in the following link http://www.mathworks.com/help/symbolic/create-matlab-functions-from-mupad-expressions.html
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?
0 件のコメント
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!