PROBELEM IN MY CODE (matlab r2011b)

조회 수: 1 (최근 30일)
justin  Taylor
justin Taylor 2011년 12월 26일
P=inline('sin(4*x + 4*y)','x','y')
Q=inline('cos (4*x-4*y)','x','y')
x=linspace(-4,4,20)
y=linspace(-4,4,20)
[X,Y]=meshgrid(x,y)
p=P(X,Y)
q=Q(X,Y)
quiver(X,Y,p,q)
My error
Attempt to execute SCRIPT inlineeval as a function: C:\Program Files\MATLAB\R2011b\toolbox\matlab\funfun\inlineeval.m
Error in inline/subsref (line 24) INLINE_OUT_ = inlineeval(INLINE_INPUTS_, INLINE_OBJ_.inputExpr, INLINE_OBJ_.expr);
Error in Untitled5 (line 6) p=P(X,Y);
  댓글 수: 2
Walter Roberson
Walter Roberson 2011년 12월 26일
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
What is the difference between what you expect and what you get? Does the code produce an error message? Which message and which line?
justin  Taylor
justin Taylor 2011년 12월 26일
Ok i fix it !

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

채택된 답변

Walter Roberson
Walter Roberson 2011년 12월 26일
My guess would be that you have a corrupted installation.
I never use inline functions myself; I prefer to use anonymous functions, or just to make direct calls as in your previous question
  댓글 수: 1
justin  Taylor
justin Taylor 2011년 12월 27일
I know! Because the installation error. I was fixed it, thanks so much

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by