How do I make a figure full screen?
232 次查看(过去 30 天)
显示 更早的评论
I create a guide and I use this function to make it full screen:
set(hObject,'units','normalized','outerpos',[0 0 1 1.2]);
but i don't get what i want, i get this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162356/image.png)
And i want something like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162357/image.png)
0 个评论
采纳的回答
更多回答(2 个)
sipsj11
2017-12-13
There's an easier solution than using someone else's script, you can simply declare in your text. It's slightly different for older versions (prior to 2014)
Code below:
fig=gcf;
fig.Units='normalized';
fig.OuterPosition=[0 0 1 1];
0 个评论
Image Analyst
2016-4-24
Change the 1.2 to 1.0. Or you can try this:
% Set up figure properties:
% Enlarge figure to full screen.
set(gcf, 'Units', 'Normalized', 'OuterPosition', [0 0 1 1]);
% Get rid of tool bar and pulldown menus that are along top of figure.
set(gcf, 'Toolbar', 'none', 'Menu', 'none');
Or do what I do and that is to use Yair Altman's undocumented Java calls. See attached function.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!