Why do I receive an error in CONTOURF in MATLAB 7.0 (R14) when the input matrix Z is completely negative?
1 view (last 30 days)
Show older comments
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.
Accepted Answer
MathWorks Support Team
on 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',...)
0 Comments
More Answers (0)
See Also
Categories
Find more on Formatting and Annotation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!