I want to include a variable in my figure title when I save to a directory.
6 views (last 30 days)
More Answers (1)
Christopher McCausland on 13 Apr 2022
Yes this is possiable, you can either use strcat() to 'build' the title string first or just use title(), it'll look something like this;
plot(); %whatever you are plotting
title('TIMEend =',TIMEend); % Create a string for the title and include the variable value
saveas(figure(1),[pwd '/PRCC plots for submission 2/Final E monoton 2029.fig']) % continue to save...
Let me know if this is what you are looking for,