📄 ipcascoplotgui.m
字号:
function varargout = ipcascoplotGUI(varargin)
% IPCASCOPLOTGUI M-file for ipcascoplotGUI.fig
% IPCASCOPLOTGUI, by itself, creates a new IPCASCOPLOTGUI or raises the existing
% singleton*.
%
% H = IPCASCOPLOTGUI returns the handle to a new IPCASCOPLOTGUI or the handle to
% the existing singleton*.
%
% IPCASCOPLOTGUI('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in IPCASCOPLOTGUI.M with the given input arguments.
%
% IPCASCOPLOTGUI('Property','Value',...) creates a new IPCASCOPLOTGUI or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before ipcascoplotGUI_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to ipcascoplotGUI_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 ipcascoplotGUI
% Last Modified by GUIDE v2.5 13-Apr-2006 14:53:58
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @ipcascoplotGUI_OpeningFcn, ...
'gui_OutputFcn', @ipcascoplotGUI_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(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 ipcascoplotGUI is made visible.
function ipcascoplotGUI_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 ipcascoplotGUI (see VARARGIN)
% Choose default command line output for ipcascoplotGUI
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes ipcascoplotGUI wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = ipcascoplotGUI_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;
vars = evalin('base','who');
set(handles.ModelMatrix,'String',vars)
set(handles.NameMatrix,'String',vars)
set(handles.ClassesMatrix,'String',vars)
% --- Executes on selection change in ModelMatrix.
function ModelMatrix_Callback(hObject, eventdata, handles)
% hObject handle to ModelMatrix (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: contents = get(hObject,'String') returns ModelMatrix contents as cell array
% contents{get(hObject,'Value')} returns selected item from ModelMatrix
% --- Executes during object creation, after setting all properties.
function ModelMatrix_CreateFcn(hObject, eventdata, handles)
% hObject handle to ModelMatrix (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: listbox controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on selection change in NameMatrix.
function NameMatrix_Callback(hObject, eventdata, handles)
% hObject handle to NameMatrix (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: contents = get(hObject,'String') returns NameMatrix contents as cell array
% contents{get(hObject,'Value')} returns selected item from NameMatrix
% --- Executes during object creation, after setting all properties.
function NameMatrix_CreateFcn(hObject, eventdata, handles)
% hObject handle to NameMatrix (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: listbox controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on selection change in ClassesMatrix.
function ClassesMatrix_Callback(hObject, eventdata, handles)
if (get(handles.ipcascoplotNamesCheckBox,'Value') == get(handles.ipcascoplotNamesCheckBox,'min'))
% then checkbox is checked-take approriate action
set(handles.NameMatrix,'Enable', 'on')
else
set(handles.NameMatrix,'Enable', 'off')
end
% hObject handle to ClassesMatrix (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: contents = get(hObject,'String') returns ClassesMatrix contents as cell array
% contents{get(hObject,'Value')} returns selected item from ClassesMatrix
% --- Executes during object creation, after setting all properties.
function ClassesMatrix_CreateFcn(hObject, eventdata, handles)
% hObject handle to ClassesMatrix (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: listbox controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on button press in ipcascoplotUpdateButton.
function ipcascoplotUpdateButton_Callback(hObject, eventdata, handles)
vars = evalin('base','who');
set(handles.ModelMatrix,'String',vars)
set(handles.NameMatrix,'String',vars)
set(handles.ClassesMatrix,'String',vars)
% hObject handle to ipcascoplotUpdateButton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in ipcascoplotNamesCheckBox.
function ipcascoplotNamesCheckBox_Callback(hObject, eventdata, handles)
if (get(handles.ipcascoplotNamesCheckBox,'Value') == get(handles.ipcascoplotNamesCheckBox,'min'))
% then checkbox is checked-take approriate action
set(handles.NameMatrix,'Enable', 'on')
else
set(handles.NameMatrix,'Enable', 'off')
end
% hObject handle to ipcascoplotNamesCheckBox (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of ipcascoplotNamesCheckBox
function ipcascoplotComponent1Box_Callback(hObject, eventdata, handles)
% hObject handle to ipcascoplotComponent1Box (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of ipcascoplotComponent1Box as text
% str2double(get(hObject,'String')) returns contents of ipcascoplotComponent1Box as a double
% --- Executes during object creation, after setting all properties.
function ipcascoplotComponent1Box_CreateFcn(hObject, eventdata, handles)
% hObject handle to ipcascoplotComponent1Box (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function ipcascoplotComponent2Box_Callback(hObject, eventdata, handles)
% hObject handle to ipcascoplotComponent2Box (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of ipcascoplotComponent2Box as text
% str2double(get(hObject,'String')) returns contents of ipcascoplotComponent2Box as a double
% --- Executes during object creation, after setting all properties.
function ipcascoplotComponent2Box_CreateFcn(hObject, eventdata, handles)
% hObject handle to ipcascoplotComponent2Box (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function ipcascoplotNumberOfPlots_Callback(hObject, eventdata, handles)
% hObject handle to ipcascoplotNumberOfPlots (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of ipcascoplotNumberOfPlots as text
% str2double(get(hObject,'String')) returns contents of ipcascoplotNumberOfPlots as a double
% --- Executes during object creation, after setting all properties.
function ipcascoplotNumberOfPlots_CreateFcn(hObject, eventdata, handles)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -