MATLAB: How do i make figures plotted in Matlab to appear in a chronological order MATLAB I have 5 figures plotted .As we know , the cursor Matlab always takes us to the final 5th figure when we finsih our simulation. How do i make figure 1 come first , then figure 2 , 3 , 4 and then 5 in an order? Thank you in advance Best Answer You can bring focus to a figure with the figure function:h=struct;h.f=zeros(1,5);%will contain the handles to the figuresfor n=1:5 h.f(n)=figure(n) plot(rand(1,10),1:10)end%bring focus to the figures in reverse orderfor n=numel(h.f):-1:1 figure(h.f(n))end Related SolutionsMATLAB: How to control whether or not a figure window is hidden or visible in MATLAB 7.7 (R2008b) To do this, toggle the 'Visible' Figure property as shown in the following code:h = figure(1);pauseset(h,'Visible','off') %makes the figure invisiblepauseset(h,'Visible','on') %makes the figure visible again MATLAB: Save figure h=figure('visible','off');plot(h,1:10);saveas();close(h); Related QuestionControlling background color of selected uicontrol popupDelete Figures except main GUI figureGUI manual data selectionHow to customize the figure menubar in MATLAB 7.4 (R2007a)
Best Answer