From: ben harper on
i want to plot a new figure with:

h11=figure(11);

but how can i assign a title name to the figure?
it doesn't accept like:
h11=figure(11, 'Name','aaa');

thank you
From: ImageAnalyst on
ben harper:
Do you mean in the window's title bar?

Or just a caption over the plot, like this:
a = round(100 * rand(1,50)) % Generate sample data
plot(a);
title('This is your data', 'FontSize', 40);
set(gcf, 'Position', get(0, 'ScreenSize')); % Maximize figure.
From: Pekka Kumpulainen on
"ben harper" <controlusc(a)gmail.com> wrote in message <hkrptc$n5e$1(a)fred.mathworks.com>...
> i want to plot a new figure with:
>
> h11=figure(11);
>
> but how can i assign a title name to the figure?
> it doesn't accept like:
> h11=figure(11, 'Name','aaa');
>
> thank you

Documentation mentions valid syntaxes as:
figure('PropertyName',propertyvalue,...)
or figure(h)
but not the combination: figure(h,'PropertyName',propertyvalue,...)

So you would have to split that in two
h11=figure(11); set(h11,'Name','aaa');