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
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 个评论
更多回答(0 个)
另请参阅
类别
在 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!