Get rid of "Figure 1" in the title of the picture

I have a number that I want his name to be Step 2 of 3: Simulation Plot Window , but his name: figure 2: Step 2 of 3: Simulation Plot Window .

How can I change my name to the name I want?

I do not know if this is necessary, but at the beginning of the code I wrote:

 hFig = figure('Name','window 1','Visible','Off'); 

and towards the end of my code I write:

 hFig = figure('Name','Step 2 of 3: Simulation Plot Window','Menubar','none', 'Resize','off', ... 'WindowStyle','modal', 'Position',[300 300 1150 600]); 
+15
matlab matlab-figure
Jun 07 '12 at 9:20
source share
1 answer

Displaying the number in the name is one of the properties of the figure. By default, it is set to on if you are not using GUIDE .

In any case, to remove it, use

 set(gcf,'NumberTitle','off'); 

It is best to use the handle you received from calling the figure function:

 hFig = figure('Name','window 1','Visible','Off'); set(hFig,'NumberTitle','off'); 

Furthermore, (as @GuntherStruyf mentioned), this can be done in a call to the figure function itself:

 hFig = figure('Name','window 1','Visible','Off','NumberTitle','off'); 
+24
Jun 07 2018-12-12T00:
source share



All Articles