how to invisible the plot image in matlab

来源:互联网 发布:lol小智淘宝店 编辑:程序博客网 时间:2024/05/22 06:17

you can do like this

set(0, 'DefaultFigureVisible', 'off');
set(0, 'DefaultAxesVisible', 'off'); % any image can not be visible in matlab

% do like plot and other operator

set(0, 'DefaultFigureVisible', 'on');
set(0, 'DefaultAxesVisible', 'on');