MATLAB: Plotting figures using figure handles

figureplotplotting

hello guys, i need your help in solving the following problem: i have an open figure and i have done the following:
fig = gcf;
now i have closed the figure and i want to plot what is inside fig. Is this possible without saving the figure in .fig file? If yes then how can it be done?
Thanks in advance.

Best Answer

Once it's closed, it's gone and the handle, despite the variable still holding the value, is bogus.
Only replotting from the raw data or, as you say, saving to a file will preserve it for posterity.
Related Question