Save figures with a variable name in a subfolder of current working folder
11 views (last 30 days)
I want save figures with a name that is determined by the variables plotted and save them in a subfolder of current working folder. Therefore I need a function that changes the name of the saved figure with a logic given my me. I did the same for the title of the figure by using the function
title(['lambda ',num2str(TSR(k)),' radius optimal section ',num2str(r_rif(t)/R*100),' %']);
where the TSR(k) and r_rif(t)/R*100 are detrmined according to the running of the code. I would like something similar to determine the name with which I save my figure, together with the command to save it a specific folder.
Thank you in advance!