Window title of figures in a for loop

1 次查看(过去 30 天)
Please help!
I have two different loops. One that works with ii and one that works with i. Both of these loops need to plot figures but use different files. They are now plotted as follows: figure(i) and figure (ii+3) -- (3 because the i loop only needs to plot 3 figures). How can I change the titles for these figures? So that they correspond with the filename.
  1 个评论
KL
KL 2017-11-3
Do you really need two loops? How many files are you dealing with and what is the significance of having two loops? If you explain a bit more detail, maybe it could be simplified.

请先登录,再进行评论。

采纳的回答

Fangjun Jiang
Fangjun Jiang 2017-11-3
try this, within your loop:
f=figure(i);
title('my title');
set(f,'Name','my window title');

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Title 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by