⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gui_grid.m

📁 关于MATLAB 的m文件。其详细介绍了怎么样应用MATLAB的应用。大家可以互相学习下
💻 M
字号:
function varargout = gui_grid(varargin)%GUI_GRID M-file for gui_grid.fig%      GUI_GRID, by itself, creates a new GUI_GRID or raises the existing%      singleton*.%%      H = GUI_GRID returns the handle to a new GUI_GRID or the handle to%      the existing singleton*.%%      GUI_GRID('Property','Value',...) creates a new GUI_GRID using the%      given property value pairs. Unrecognized properties are passed via%      varargin to gui_grid_OpeningFcn.  This calling syntax produces a%      warning when there is an existing singleton*.%%      GUI_GRID('CALLBACK') and GUI_GRID('CALLBACK',hObject,...) call the%      local function named CALLBACK in GUI_GRID.M with the given input%      arguments.%%      *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 gui_grid% Last Modified by GUIDE v2.5 06-May-2009 09:39:55% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name',       mfilename, ...                   'gui_Singleton',  gui_Singleton, ...                   'gui_OpeningFcn', @gui_grid_OpeningFcn, ...                   'gui_OutputFcn',  @gui_grid_OutputFcn, ...                   'gui_LayoutFcn',  [], ...                   'gui_Callback',   []);if nargin && ischar(varargin{1})   gui_State.gui_Callback = str2func(varargin{1});endif 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 gui_grid is made visible.function gui_grid_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   unrecognized PropertyName/PropertyValue pairs from the%            command line (see VARARGIN)% Choose default command line output for gui_gridhandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes gui_grid wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = gui_grid_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 structurevarargout{1} = handles.output;function x_edit_Callback(hObject, eventdata, handles)% hObject    handle to x_edit (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 x_edit as text%        str2double(get(hObject,'String')) returns contents of x_edit as a double% --- Executes during object creation, after setting all properties.function x_edit_CreateFcn(hObject, eventdata, handles)% hObject    handle to x_edit (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');endfunction a_edit_Callback(hObject, eventdata, handles)% hObject    handle to a_edit (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 a_edit as text%        str2double(get(hObject,'String')) returns contents of a_edit as a double% --- Executes during object creation, after setting all properties.function a_edit_CreateFcn(hObject, eventdata, handles)% hObject    handle to a_edit (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');endfunction y_edit_Callback(hObject, eventdata, handles)% hObject    handle to y_edit (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 y_edit as text%        str2double(get(hObject,'String')) returns contents of y_edit as a double% --- Executes during object creation, after setting all properties.function y_edit_CreateFcn(hObject, eventdata, handles)% hObject    handle to y_edit (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');endfunction b_edit_Callback(hObject, eventdata, handles)% hObject    handle to b_edit (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 b_edit as text%        str2double(get(hObject,'String')) returns contents of b_edit as a double% --- Executes during object creation, after setting all properties.function b_edit_CreateFcn(hObject, eventdata, handles)% hObject    handle to b_edit (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');endfunction z_edit_Callback(hObject, eventdata, handles)% hObject    handle to z_edit (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 z_edit as text%        str2double(get(hObject,'String')) returns contents of z_edit as a double% --- Executes during object creation, after setting all properties.function z_edit_CreateFcn(hObject, eventdata, handles)% hObject    handle to z_edit (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');endfunction c_edit_Callback(hObject, eventdata, handles)% hObject    handle to c_edit (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 c_edit as text%        str2double(get(hObject,'String')) returns contents of c_edit as a double% --- Executes during object creation, after setting all properties.function c_edit_CreateFcn(hObject, eventdata, handles)% hObject    handle to c_edit (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% --- Executes on button press in play.function play_Callback(hObject, eventdata, handles)% hObject    handle to play (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 close_pushbutton.function close_pushbutton_Callback(hObject, eventdata, handles)% hObject    handle to close_pushbutton (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)function dots_Callback(hObject, eventdata, handles)% hObject    handle to dots (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 dots as text%        str2double(get(hObject,'String')) returns contents of dots as a double% --- Executes during object creation, after setting all properties.function dots_CreateFcn(hObject, eventdata, handles)% hObject    handle to dots (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');endfunction edit18_Callback(hObject, eventdata, handles)% hObject    handle to edit18 (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 edit18 as text%        str2double(get(hObject,'String')) returns contents of edit18 as a double% --- Executes during object creation, after setting all properties.function edit18_CreateFcn(hObject, eventdata, handles)% hObject    handle to edit18 (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');endfunction edit19_Callback(hObject, eventdata, handles)% hObject    handle to edit19 (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 edit19 as text%        str2double(get(hObject,'String')) returns contents of edit19 as a double% --- Executes during object creation, after setting all properties.function edit19_CreateFcn(hObject, eventdata, handles)% hObject    handle to edit19 (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');endfunction edit20_Callback(hObject, eventdata, handles)% hObject    handle to edit20 (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 edit20 as text%        str2double(get(hObject,'String')) returns contents of edit20 as a double% --- Executes during object creation, after setting all properties.function edit20_CreateFcn(hObject, eventdata, handles)% hObject    handle to edit20 (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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -