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

4 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 27 Jun. 2009
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',...)

Weitere Antworten (0)

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by