MATLAB GUI 窗口初始最大化

 
   
  1. % --- Outputs from this function are returned to the command line.
  2. function varargout = GUI_MAIN_OutputFcn(hObject, eventdata, handles)
  3. % varargout cell array for returning output args (see VARARGOUT);
  4. % hObject handle to figure
  5. % eventdata reserved - to be defined in a future version of MATLAB
  6. % handles structure with handles and user data (see GUIDATA)
  7. %弹出窗口时就最大化
  8. javaFrame = get(gcf,'JavaFrame');
  9. set(javaFrame,'Maximized',1);
  10. % Get default command line output from handles structure
  11. varargout{1} = handles.output;


第二步:工具-->GUI选项




第三步:Resize为on



 
 
  1. % --- Outputs from this function are returned to the command line.
  2. function varargout = GUI_MAIN_OutputFcn(hObject, eventdata, handles)
  3. % varargout cell array for returning output args (see VARARGOUT);
  4. % hObject handle to figure
  5. % eventdata reserved - to be defined in a future version of MATLAB
  6. % handles structure with handles and user data (see GUIDATA)
  7. %弹出窗口时就最大化
  8. javaFrame = get(gcf,'JavaFrame');
  9. set(javaFrame,'Maximized',1);
  10. % Get default command line output from handles structure
  11. varargout{1} = handles.output;


第二步:工具-->GUI选项




第三步:Resize为on



猜你喜欢

转载自blog.csdn.net/win2000_li/article/details/80940417