Skip to content
Snippets Groups Projects
Commit c0f12968 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Create graph folder in rplot if it does not exist

parent 5798501d
No related branches found
No related tags found
No related merge requests found
...@@ -92,6 +92,14 @@ elseif rplottype == 2 ...@@ -92,6 +92,14 @@ elseif rplottype == 2
axis tight; axis tight;
end end
end end
% create subdirectory <fname>/graphs if it doesn't exist
if ~exist(M_.fname, 'dir')
mkdir('.',M_.fname);
end
if ~exist([M_.fname filesep 'graphs'])
mkdir(M_.fname,'graphs');
end
dyn_saveas(hh,[M_.fname, filesep, 'graphs', filesep, 'SimulatedTrajectory_' deblank(s1(1,:))],options_) dyn_saveas(hh,[M_.fname, filesep, 'graphs', filesep, 'SimulatedTrajectory_' deblank(s1(1,:))],options_)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment