Prev: skew
Next: uigetfile problem
From: Pia on 2 Mar 2010 06:07 Hi, I want to suppress figures as they are created so that they don’t pop up on the screen. I have used: h=figure('Visible','off'); i.e. h=figure('Name','Output_Plots','NumberTitle','off','visible','off'); x=[1 2]; y=[3 4]; plot(x,y); xlabel('x'),ylabel('y'); title('Outputs'); saveas(h,'Output_Plots','fig') However, when I try to open the saved matlab figure in the folder then it’s been saved in, I’m unable to open it. Am I missing something? Thanks.
From: Jos (10584) on 2 Mar 2010 08:45 "Pia " <p.sartor(a)sheffield.ac.uk> wrote in message <hmirgo$n3m$1(a)fred.mathworks.com>... > Hi, > I want to suppress figures as they are created so that they don’t pop up on the screen. I have used: > > h=figure('Visible','off'); > > i.e. > h=figure('Name','Output_Plots','NumberTitle','off','visible','off'); > x=[1 2]; > y=[3 4]; > > plot(x,y); > xlabel('x'),ylabel('y'); > title('Outputs'); > > saveas(h,'Output_Plots','fig') > > However, when I try to open the saved matlab figure in the folder then it’s been saved in, I’m unable to open it. > Am I missing something? > > Thanks. That's because the figure still has the property 'visible' set to 'off' You could use OPENFIG or perhaps make it visibile by: set(get(0,'children'),'visible','on') hth Jos
|
Pages: 1 Prev: skew Next: uigetfile problem |