Commit deb03f45 authored by mmroma's avatar mmroma
Browse files

Cleaning. Only have 1 Figures&Animations folder now, figures are saved as they...

Cleaning. Only have 1 Figures&Animations folder now, figures are saved as they are made with specific names. CoopPayloadSim is run slightly differently now, still can use saved run files but also can click 1 and done to run new ones.
parent 4c8220f8
*
*/
!.gitignore
\ No newline at end of file
!.gitignore
!save_current_figure.m
!save_video.m
\ No newline at end of file
function [fig_num] = save_current_figure(prefix,fig_num,save_figs_bool)
%SAVE_CURRENT_FIGURE
if ~save_figs_bool
fig_num = fig_num + 1;
return
else
figname = strcat(prefix,string(fig_num));
fig_num = fig_num + 1;
savefig( strcat('Figures&Animations/',figname,'.fig'));
saveas(gcf,strcat('Figures&Animations/',figname,'.png'));
saveas(gcf,strcat('Figures&Animations/',figname,'.pdf'));
end
end
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