MATLAB GUI 窗口初始最大化
-
% --- Outputs from this function are returned to the command line.
-
function varargout = GUI_MAIN_OutputFcn(hObject, eventdata, handles)
-
% varargout cell array for returning output args (see VARARGOUT);
-
% hObject handle to figure
-
% eventdata reserved - to be defined in a future version of MATLAB
-
% handles structure with handles and user data (see GUIDATA)
-
%弹出窗口时就最大化
-
javaFrame = get(gcf,'JavaFrame');
-
set(javaFrame,'Maximized',1);
-
-
-
% Get default command line output from handles structure
-
varargout{1} = handles.output;
第二步:工具-->GUI选项
第三步:Resize为on
-
% --- Outputs from this function are returned to the command line.
-
function varargout = GUI_MAIN_OutputFcn(hObject, eventdata, handles)
-
% varargout cell array for returning output args (see VARARGOUT);
-
% hObject handle to figure
-
% eventdata reserved - to be defined in a future version of MATLAB
-
% handles structure with handles and user data (see GUIDATA)
-
%弹出窗口时就最大化
-
javaFrame = get(gcf,'JavaFrame');
-
set(javaFrame,'Maximized',1);
-
-
-
% Get default command line output from handles structure
-
varargout{1} = handles.output;
第二步:工具-->GUI选项
第三步:Resize为on