error using contour function
조회 수: 6 (최근 30일)
이전 댓글 표시
I am currently getting an error using the contour function. My code is [c,h] = contour(u,[0 0],'r'); where u is a matrix 512 by 512. The code runs fine on my friends computer. I have reinstalled MATLAB but the error is still there. Please help!
??? Error using ==> contours
Too many input arguments.
Error in ==> specgraph.contourgroup.refresh at 180
[this.contourmatrix,msg] = contours(x,y,z,levels);
Error in ==> specgraph.contourgroup.schema>LdoDirtyAction at 265
refresh(h);
Warning: Error occurred while evaluating listener callback.
> In contour at 88
In geodesics at 27
댓글 수: 0
답변 (2개)
Wayne King
2012년 1월 27일
It looks like you are actually calling an undocumented function from the Signal Processing Toolbox, contours()
u = randn(512,512);
[c,h] = contour(u,[0 0],'r');
should work.
Are you sure you don't have a typo in your code where you are actually calling contours?
댓글 수: 2
Walter Roberson
2013년 1월 21일
Carlos was able to resolve this on his system; see http://www.mathworks.co.uk/matlabcentral/answers/59347-problems-with-contour-function-it-doesn-t-work-even-matlab-s-examples
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!