title('string') outputs the string at the top and in the center of the current axes.title(fname) evaluates the function that returns a string and displays the str...
plot((1:10).^2) title('My Title') You also can call title with a function that returns text. For example, the date function returns text with today's date. Get title(date) MATLAB® ...