我将默认的FigureNextplot属性设置为“new”,而不是工厂默认的“add”:
set(groot, 'DefaultFigureNextplot', 'new')
Run Code Online (Sandbox Code Playgroud)
使用hold onMatlab 时,应将FigureNextplot 和 AxesNextplot 属性设置为“add”。但是,当我完成图形处理时,hold off会重置 AxesNextplot 属性,但不会重置 FigureNextplot 属性。
这背后的原因是什么?有没有办法继续使用我的默认设置而不删除我的代码中的所有hold语句?