How to hide "Figure" the window title bar for a matlab figure?

52 visualizzazioni (ultimi 30 giorni)
I want to retain the figure number but remove the word "Figure". I can do but it removes the figure number
f = figure('numbertitle', 'off');
MATLAB: 2016b OS: Debian 8.5

Risposta accettata

the cyclist
the cyclist il 23 Ott 2016
Modificato: the cyclist il 23 Ott 2016
If I am understanding you correctly, that you want the automatic figure numbering, then you can do this:
fn = get(gcf,'Number');
You can embed that second line into the last one, if you want:
You could also get clever and anticipate the current figure number from the prior figure (if there is one), and do it all in one line:
But that is getting a little hazardous in assuming a prior figure, the fact that none of the prior ones were deleted, etc. So, I would stick with one of the other versions.

Più risposte (0)


Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange



Community Treasure Hunt

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

Start Hunting!

Translated by