필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Create MATLAB Functions from MuPAD Expressions(R2013a)

조회 수: 1 (최근 30일)
Mohamed Elkomy
Mohamed Elkomy 2014년 3월 15일
마감: MATLAB Answer Bot 2021년 8월 20일
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개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by