Alo*_*iel 15 matlab matlab-figure
我有一个想要他的名字的人物Step 2 of 3: Simulation Plot Window,但它的名字是:figure 2: Step 2 of 3: Simulation Plot Window.
如何将他的名字改为我想要的名字?
我不知道是否有必要,但在我写的代码的开头:
hFig = figure('Name','window 1','Visible','Off');
Run Code Online (Sandbox Code Playgroud)
为了我的代码结束,我写道:
hFig = figure('Name','Step 2 of 3: Simulation Plot Window','Menubar','none', 'Resize','off', ...
'WindowStyle','modal', 'Position',[300 300 1150 600]);
Run Code Online (Sandbox Code Playgroud)
And*_*ein 24
显示标题中的数字是该图的属性之一.on除非您正在使用,否则默认设置为GUIDE.
无论如何,为了删除它,使用
set(gcf,'NumberTitle','off');
Run Code Online (Sandbox Code Playgroud)
更好的方法是使用从figure函数调用中获得的句柄:
hFig = figure('Name','window 1','Visible','Off');
set(hFig,'NumberTitle','off');
Run Code Online (Sandbox Code Playgroud)
另外,(正如@GuntherStruyf所提到的),可以在对figure函数本身的调用中执行此操作:
hFig = figure('Name','window 1','Visible','Off','NumberTitle','off');
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
15243 次 |
| 最近记录: |