Borrar filtros
Borrar filtros

For loops and figure window title

1 visualización (últimos 30 días)
Debbie Oomen
Debbie Oomen el 3 de Nov. de 2017
Comentada: KL el 3 de Nov. de 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?

Respuesta aceptada

KL
KL el 3 de Nov. de 2017
figure('Name',basename{k},'NumberTitle','off')
  6 comentarios
Debbie Oomen
Debbie Oomen el 3 de Nov. de 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 el 3 de Nov. de 2017
It's hard to guess why without knowing more details. Try to set a breakpoint and run it step by step maybe.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Object Properties en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by