>> x=-6:0.001:6; >> y=-6:0.001:6; >> [X,Y]=meshgrid(x,y); >> phi=x.*y-y; >> contour(x,y,phi) Error using contour (line 48) Z must be at least a 2x2 matrix.

 채택된 답변

madhan ravi
madhan ravi 2018년 9월 10일
편집: madhan ravi 2018년 9월 10일

1 개 추천

EDITED
x=linspace(-6,6,1000);
y=x;
[X,Y]=meshgrid(x,y)
phi=X.*Y-Y
contour(X,Y,phi)

댓글 수: 5

madhan ravi
madhan ravi 2018년 9월 10일
If it works please accept the answer.
cstibbards
cstibbards 2018년 9월 10일
Matlab froze when I typed this in, it hasn't worked yet.
madhan ravi
madhan ravi 2018년 9월 10일
편집: madhan ravi 2018년 9월 10일
Now try the edited code it worked for me.
madhan ravi
madhan ravi 2018년 9월 10일
did it work @cstibbards?
cstibbards
cstibbards 2018년 9월 10일
Not yet, but I think its an issue with my computer running Matlab, not the code. Thanks.

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

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Orange에 대해 자세히 알아보기

태그

질문:

2018년 9월 10일

댓글:

2018년 9월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by