MATLAB clear current digit

I want to clear the global MATLAB property CurrentFigure, because I need a plot that I make so as not to be overwritten if the careless user uses plotit without opening a new picture. I tried

set(0, 'CurrentFigure', []);

But that does not work. It's impossible?

+3
source share
1 answer

No, this does not work.

What works set(myFigureHandle,'HandleVisibility','off'). Thus, a figure with a pen myFigureHandlewill no longer become the current figure.

, 'off', gca. , plot(myAxesHandle,...), , .

+4

Source: https://habr.com/ru/post/1747697/


All Articles