Hi, I'm using Matlab R2012b. I need to save some figures but I keep getting errors when I try to open them again. I was able to track the problem to figures containing areas whose BaseValue property is negative. For example, the following script gives me an error:
On the last line - or generally, whenever I try to open the saved figure - I get the following error:
------------ Attempted to access x(1,:); index out of bounds because size(x)=[0,0].
Error in specgraph.areaseries/refresh (line 75) xx = [x(1,:);x;flipud(x)];
Error in graph2d.series/schema>LdoDirtyAction (line 108) refresh(h);
Warning: Error occurred while evaluating listener callback. > In specgraph.areaseries.schema>LdoUpdateSiblingAction at 133 In graphics\private\hgloadStructDbl at 97 In C:\Program Files\MATLAB\R2012b\toolbox\matlab\graphics\hgload.p>hgload at 68 ------------
Even while generating the error, the figure does open. However, once the error has appeared, I'm left with some erratic behaviour in Matlab's figures. I have to close and reopen Matlab to get it back to normal.
Can anyone please confirm that this error is not only confined to my machine? Does anyone know why this occurs or how to avoid it? Is this a bug in Matlab?