show no figures in matlab, disable figures
Posted by rolf on Monday, 26 January 2015
If you want to run a matlab script, that shows figures, on a remote machine without using ssh -X, start matlab with
matlab -nodesktop
and write following line in the matlab terminal, before starting your .m script
set(0,'DefaultFigureVisible','off');
That prevents figures to pop up. To set the visibility on 'on', use
set(0,'DefaultFigureVisible','on');
Add new comment