Commit c0f12968 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Create graph folder in rplot if it does not exist

parent 5798501d
......@@ -92,6 +92,14 @@ elseif rplottype == 2
axis tight;
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_)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment