Skip to content

Commit 8b4a44a

Browse files
committed
plotResults now pauses when no filename provided. if filename provided, it saves the plot to image file
1 parent cbf5de3 commit 8b4a44a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

functions/plotResults.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ function plotResults(data,fix,filename,res)
6262
%% save and close
6363
set(hf,'PaperPositionMode','auto');
6464
drawnow;
65-
% pause;
66-
print(filename,'-dpng','-r300');
65+
if isempty(filename)
66+
pause;
67+
else
68+
print(filename,'-dpng','-r300');
69+
end
6770
close(hf);

0 commit comments

Comments
 (0)