?? parameter.m
字號:
function varargout = parameter(varargin)
% PARAMETER M-file for parameter.fig
% PARAMETER, by itself, creates a new PARAMETER or raises the existing
% singleton*.
%
% H = PARAMETER returns the handle to a new PARAMETER or the handle to
% the existing singleton*.
%
% PARAMETER('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in PARAMETER.M with the given input arguments.
%
% PARAMETER('Property','Value',...) creates a new PARAMETER or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before parameter_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to parameter_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help parameter
% Last Modified by GUIDE v2.5 10-May-2005 16:14:15
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @parameter_OpeningFcn, ...
'gui_OutputFcn', @parameter_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin & isstr(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before parameter is made visible.
function parameter_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to parameter (see VARARGIN)
%設置當前窗口名
str='180度根軌跡實驗模型參數窗口';
set(gcf,'name',str,'numbertitle','off')
% Choose default command line output for parameter
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes parameter wait for user response (see UIRESUME)
% uiwait(handles.figure1);
%設置當前窗口背景顏色
set(gcf,'color',[1,0.98,0.9])
% --- Outputs from this function are returned to the command line.
function varargout = parameter_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)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --- Executes on button press in pushbutton1.function pushbutton1_Callback(hObject, eventdata, handles)% hObject handle to pushbutton1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)
lab01% --- Executes on button press in pushbutton2.function pushbutton2_Callback(hObject, eventdata, handles)% hObject handle to pushbutton2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)lab02% --- Executes on button press in pushbutton3.function pushbutton3_Callback(hObject, eventdata, handles)% hObject handle to pushbutton3 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)lab03% --- Executes on button press in pushbutton4.function pushbutton4_Callback(hObject, eventdata, handles)% hObject handle to pushbutton4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)lab04% --------------------------------------------------------------------function Untitled_1_Callback(hObject, eventdata, handles)% hObject handle to Untitled_1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)
%設置關閉窗口提示信息
button=questdlg('Do you want to close this window?',...
'Close Operation','Yes','No','No');
if strcmp(button,'Yes')
close
elseif strcmp(button,'No')
disp('Canceled file operation')
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -