Why do I receive an error in CONTOURF in MATLAB 7.0 (R14) when the input matrix Z is completely negative?

조회 수: 4 (최근 30일)
When I attempt to use CONTOURF in MATLAB 7.0 (R14) with the Z matrix consisting entirely of negative numbers, I receive an error:
contourf(-rand(10))
??? Index exceeds matrix dimensions.
Error in ==> specgraph.contourgroup.schema>LdoDirtyAction at 256
refresh(h);
??? Error occurred while evaluating listener callback.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, read below for any possible workarounds:
This problem has been fixed in MATLAB 7.0.1 (R14SP1). If you are using a previous version, read the following:
This has been verified as a bug in the implementation of CONTOURF in MATLAB 7.0 (R14). To work around this issue, invoke CONTOURF with the 'v6' option. This executes the previous implementation of CONTOURF. Make such calls to CONTOURF as follows:
contourf('v6',...)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by