一、简介
基于matlab GUI学生成绩查询系统:可查询学生各学科成绩、平均分及排名。
二、源代码
function varargout = chengjichaxun(varargin)
% CHENGJICHAXUN M-file for chengjichaxun.fig
% CHENGJICHAXUN, by itself, creates a new CHENGJICHAXUN or raises the existing
% singleton*.
%
% H = CHENGJICHAXUN returns the handle to a new CHENGJICHAXUN or the handle to
% the existing singleton*.
%
% CHENGJICHAXUN('Property','Value',...) creates a new CHENGJICHAXUN using the
% given property value pairs. Unrecognized properties are passed via
% varargin to chengjichaxun_OpeningFcn. This calling syntax produces a
% warning when there is an existing singleton*.
%
% CHENGJICHAXUN('CALLBACK') and CHENGJICHAXUN('CALLBACK',hObject,...) call the
% local function named CALLBACK in CHENGJICHAXUN.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 chengjichaxun
% Last Modified by GUIDE v2.5 09-Jan-2014 16:38:01
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @chengjichaxun_OpeningFcn, ...
'gui_OutputFcn', @chengjichaxun_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 chengjichaxun is made visible.
function chengjichaxun_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 chengjichaxun
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes chengjichaxun wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = chengjichaxun_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 during object creation, after setting all properties.
function edit_xm_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_xm (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
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
function edit_xm_Callback(hObject, eventdata, handles)
% hObject handle to edit_xm (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 edit_xm as text
% str2double(get(hObject,'String')) returns contents of edit_xm as a double
% --- Executes during object creation, after setting all properties.
function edit_xh_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_xh (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
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
function edit_xh_Callback(hObject, eventdata, handles)
% hObject handle to edit_xh (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 edit_xh as text
% str2double(get(hObject,'String')) returns contents of edit_xh as a double
% --- Executes during object creation, after setting all properties.
function edit_yw_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_yw (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
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
function edit_yw_Callback(hObject, eventdata, handles)
% hObject handle to edit_yw (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 edit_yw as text
% str2double(get(hObject,'String')) returns contents of edit_yw as a double
% --- Executes during object creation, after setting all properties.
function edit_sx_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_sx (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
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
function edit_sx_Callback(hObject, eventdata, handles)
% hObject handle to edit_sx (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 edit_sx as text
% str2double(get(hObject,'String')) returns contents of edit_sx as a double
% --- Executes during object creation, after setting all properties.
function edit_yy_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_yy (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
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
function edit_yy_Callback(hObject, eventdata, handles)
% hObject handle to edit_yy (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 edit_yy as text
% str2double(get(hObject,'String')) returns contents of edit_yy as a double
% --- Executes during object creation, after setting all properties.
function edit_wl_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_wl (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
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
function edit_wl_Callback(hObject, eventdata, handles)
% hObject handle to edit_wl (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 edit_wl as text
% str2double(get(hObject,'String')) returns contents of edit_wl as a double
% --- Executes during object creation, after setting all properties.
function edit_hx_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_hx (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
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
function edit_hx_Callback(hObject, eventdata, handles)
% hObject handle to edit_hx (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 edit_hx as text
% str2double(get(hObject,'String')) returns contents of edit_hx as a double
% --- Executes during object creation, after setting all properties.
function edit_sw_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_sw (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
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
function edit_sw_Callback(hObject, eventdata, handles)
% hObject handle to edit_sw (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 edit_sw as text
% str2double(get(hObject,'String')) returns contents of edit_sw as a double
% --- Executes during object creation, after setting all properties.
function edit_cxxm_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_cxxm (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
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
function edit_cxxm_Callback(hObject, eventdata, handles)
% hObject handle to edit_cxxm (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 edit_cxxm as text
% str2double(get(hObject,'String')) returns contents of edit_cxxm as a double
% --- Executes during object creation, after setting all properties.
function edit_cxxh_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_cxxh (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
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
三、运行结果
四、备注
完整代码或者代写添加QQ 912100926