How can I avoid MATLAB from popping up a GUI figure f with two axes while plotting data inside a loop.
Here is a simple example:
f=figure;
ax.h1 = axes('Parent',f,'Position',[0.1 0.1 0.8 0.35],'Units','normalized');
ax.h2 = axes('Parent',f,'Position',[0.1 0.6 0.8 0.35],'Units','normalized');
for j=1:20
axes(ax.h1)
hold on
plot(1:3,(1:3)+j)
axes(ax.h2)
hold on
plot(1:3,(1:3)+1+j)
pause(2)
end
I need to keep plotting data for several hours. So, it would be great if MATLAB didn“t pop up each time a new plot is generated.
Thanks!
plotcommand, i.e.plot(ax.h1, bla bla bla). - Tasos Papastylianou