is it possible to move first GUI figure to center of window?

1 回表示 (過去 30 日間)
test test
test test 2018 年 12 月 5 日
回答済み: Luna 2018 年 12 月 5 日
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.

回答 (1 件)

Luna
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

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by