error using contour function

10 ビュー (過去 30 日間)
Steve Birks
Steve Birks 2012 年 1 月 27 日
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

回答 (2 件)

Wayne King
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 件のコメント
Steve Birks
Steve Birks 2012 年 1 月 27 日
If I run your code:
>> u = randn(512,512);
[c,h] = contour(u,[0 0],'r');
??? 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
Walter Roberson
Walter Roberson 2013 年 1 月 21 日

サインインしてコメントする。


Carlos G-M
Carlos G-M 2013 年 1 月 20 日
I have the same problem Steve, any solution? Thanks

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by