MATLAB: How to add a title in in the jpeg- or pdf-format saved file

figuretitle

Hey,
I use saveas(gcf,'filename','pdf') in order to save my figure as pdf file. However, I am not sure ho I can add a title to my Figure to be included in the PDF file when I open it.
Could you give me a hint please? Can I do the same for jpeg files?

Best Answer

title()
Just add
title('Here is my title')
before you save the figure.
Related Question