Filter löschen
Filter löschen

For loops and figure window title

1 Ansicht (letzte 30 Tage)
Debbie Oomen
Debbie Oomen am 3 Nov. 2017
Kommentiert: KL am 3 Nov. 2017
I have several figures. I want the title of the window figure to say the basename of the file belonging to the figure. The figures are in a loop. So the code for looping the figures without overwriting one another is:
figure(i)
but how can I change this title to my basename?

Akzeptierte Antwort

KL
KL am 3 Nov. 2017
figure('Name',basename{k},'NumberTitle','off')
  6 Kommentare
Debbie Oomen
Debbie Oomen am 3 Nov. 2017
Yes, I tried this as well but unfortunately 2 out of the 3 figures get plotted correctly (each figure has 4 subplots), but 1 out of the 3 opens a whole new figure without a basename title with one subplot.. I do not know how to fix this..
KL
KL am 3 Nov. 2017
It's hard to guess why without knowing more details. Try to set a breakpoint and run it step by step maybe.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Object Properties 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!

Translated by