Run a MuPAD script in matlab
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to be able to evaluate the integral
int_R^\infty exp(2*I*k*r)/r^n dr
in MuPAD where the notebook must take R, k and n as input argument and return the value of the integral to matlab.
I have tried
f = evalin(symengine, 'float(int(exp(2*I*k*r)/r^n, r=R..infinity))'); matlabFunction(f, 'file','otherFunctions/expIntegral_syms')
but the function meijerG does not exist in matlab, so I do not get any resulting value.
The problem I guess is that I try to create a matlab function which evaluates the integral, but I want to evaluate the integral using MuPAD. How do I create a "function" in MuPAD which may transfer input and output arguments to matlab?
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MuPAD에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!