how to specify intermediary files directory
Filename.m
Filename_dynamic.m
Filename_static.m
I want all output file to my specify directory
function chngdir(basename, newdir)
movefile([basename '.m'], newdir);
movefile([basename '_static.m'], newdir);
movefile([basename '_dynamic.m'], newdir);
cd(newdir);
end
chngdir('example1', 'myExample1Dir');
stoch_simul;
Users browsing this forum: No registered users and 5 guests