Save figures with a variable name in a subfolder of current working folder

11 views (last 30 days)
Emilio Pulli
Emilio Pulli on 17 Nov 2021
Commented: Emilio Pulli on 20 Nov 2021
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!
  9 Comments

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!