save figure in backround job
Ältere Kommentare anzeigen
Hi,
I am running a matlab job on an external computer. Figure display is not possible. However, I would like to save figures while the job is running between. I tried the following:
(extract from the code)
for ii = 1:1:100
% ...working with Frame ...
figure('visible','off')
imshow(Frame);
print(gcf,'-dpng', ['frame' num2str(ii),'.png']);
close(figure)
end
but it doesn't work. Does anyone have an idea how to realize that? I really prefer to save the images and not to keep the data sets.
Thanks a lot in advance.
Franziska
4 Kommentare
Sean de Wolski
am 3 Apr. 2012
What doesn't work? Are the images not correct? Do they not appear? Does the code not run due to an error?
Franziska
am 3 Apr. 2012
Sean de Wolski
am 3 Apr. 2012
Why not just IMWRITE?
Franziska
am 4 Apr. 2012
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Images finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!