I want to clear MATLAB's global CurrentFigure
property, because I need a plot that I make to not be overwritten if a careless user uses plot
without opening a new figure. I tried
set(0, 'CurrentFigure', []);
But it doesn't seem to work. Is this impossible?