MATLAB: The title of a figure

figurefunctiontitle

Hye, How could I give a title to a figure that depend on the input of the function that create the figure.

Best Answer

At creation:
figure('NumberTitle', 'off', 'Name', 'This is the figure title');
After creation:
FigH = figure;
...
set(FigH, 'NumberTitle', 'off', ...
'Name', sprintf('Date: %s', datestr(now, 0)));
[EDITED]: 'NumerTitle' -> 'NumberTitle'