Why do I receive an error while using SUBPLOT or CONTOURF in MATLAB 7.0.1 (R14SP1) ?

1 view (last 30 days)
I receive the following error:
??? Error using ==> axes
Values must be finite and non-NaN.
Error in ==> subplot at 338
ax = axes('units','normal','OuterPosition',outerpos,...
Error in ==> my_plotFFT at 371
subplot(4,6,cylNum+sConst.numCyls*3);
I also experience this in MATLAB 7.0 (R14). This behavior does not occur when I step through the code to debug it. I also did not face this problem in MATLAB 6.5.1 (R13SP1)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
We have verified that this is a bug in MATLAB 7.0.1 (R14SP1) and MATLAB 7.0 (R14) in the way it accelerates certain code.
Currently, to work around this issue, try turning the JIT Accelerator off temporarily as follows:
feature accel off
NOTE : It is recommended that, you turn the Accelerator back on after using SUBPLOT using the following command:
feature accel on

More Answers (0)

Categories

Find more on Contour Plots in Help Center and File Exchange

Products


Release

R14SP1

Community Treasure Hunt

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

Start Hunting!