MATLAB: Do I receive an error while using SUBPLOT or CONTOURF in MATLAB 7.0.1 (R14SP1)

accelaxescontourfdrawnowfeaturejitMATLABsubplot

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)

Best Answer

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