필터 지우기
필터 지우기

Error using mupadmex " MuPAD "

조회 수: 1 (최근 30일)
sachin k
sachin k 2017년 8월 30일
댓글: sachin k 2017년 8월 31일
I don't know Why I am getting the error "error using mupadmex......." in the following code, please help,
syms z myFun =@(m,n) int(hermiteh(m,z)*hermite(n,z),0,5) myFun(1,2)

답변 (1개)

Steven Lord
Steven Lord 2017년 8월 30일
Were you trying to call the hermiteH function? MATLAB is case sensitive so hermiteh and hermiteH are not the same function. There is no function named hermiteh in any MathWorks product, as far as I can see from a search. Nor is there a function named hermite.
When I changed both "hermiteh" and "hermite" to hermiteH evaluating the anonymous function worked.
  댓글 수: 2
sachin k
sachin k 2017년 8월 31일
Thank for writing!, but in my matlab version, I had saved the function manually by the name "hermiteh", and if call hermiteh(1,2), it gives 4, then what is wrong ??
sachin k
sachin k 2017년 8월 31일

You please see this.

If I run the following code, lagu=@(j,k,l) feval(symengine,'laguerreL',j,k,l); ele1=@(j,k) lagu(j,k-j,-0.5)*(0.5).^(k-j); ele2=@(j,k) lagu(j,k-j,-0.5)*(-0.5).^(k-j); el=@(j,k) 0.5*i*(ele1(j,k)-ele2(j,k)); double(el(3,2)) res=bsxfun(el,1:2,(1:2).').

Then it give the answer of "double(el(3,2))" , but gives the following errors for "res"

"Error using mupadengine/feval (line 157) MuPAD error: Error: Second argument: Expecting an arithmetical expression. [laguerreL]

Error in @(j,k,l)feval(symengine,'laguerreL',j,k,l) Error in test (line 6) Error in @(j,k)lagu(j,k-j,-0.5)*(0.5).^(k-j) Error in @(j,k)0.5*i*(ele1(j,k)-ele2(j,k)) res=bsxfun(el,1:2,(1:2).')"

Please help

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by