is it possible to move first GUI figure to center of window?
1 次查看(过去 30 天)
显示 更早的评论
What syntax should I add in the first .m so that I can display the .fig file in the center of window. Thank you very much, I have attached the .m file and .fig file together with the background image.
0 个评论
回答(1 个)
Luna
2018-12-5
Hi,
Change the lines 39-44 like below:
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
figHandle = gui_mainfcn(gui_State, varargin{:});
movegui(figHandle,'center');
end
% End initialization code - DO NOT EDIT
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Printing and Saving 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!