Window title of figures in a for loop
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Debbie Oomen
am 3 Nov. 2017
Kommentiert: Debbie Oomen
am 3 Nov. 2017
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 Kommentar
KL
am 3 Nov. 2017
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.
Akzeptierte Antwort
Fangjun Jiang
am 3 Nov. 2017
try this, within your loop:
f=figure(i);
title('my title');
set(f,'Name','my window title');
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Title finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!