MATLAB: How to input a text variable in a plot title

text valuestitletitle values

Hello, I have 100 plots to do but I have to change the title and the labels every time. Is it possible to input a value with the name of the title and the labels in order to be set in all plots without doing it by my own? Thank you in advance for your response!

Best Answer

Is this what you want?
title('plot title')
TitleText='second plot';
title(TitleText)