当前位置:文档之家› matlabGUI用户界面设计学生成绩管理系统完整截图

matlabGUI用户界面设计学生成绩管理系统完整截图

E23 ▼ A BCD EnglishIDnam e00993753874366415 6 9 3 53 8436 43504789548354664 4687775582 56 44585666644 5 5 6 66 4謹s s粋壽蠶鬻SIFil* Ueit Sal?A J - ■a •F nt '33 a ■□为function pushbutt on 1..Callback (hObject, ev&nt data, handles)□ % hObject handle to pushbutt on 1 (see GCBO)% event data reserved - to be defined in a future version of MATLAB% handles structure with handles and user d^ta (see GUIDATA)[ij name]^xlsreadf student ・ xlsx");handles. ID=a(:j 1);handles・ English=a(:^ 2):handles. Math=a(:, 3):handles・ najne=name (2: end^ 1);guidataChObject, handles):set (handles, listboxU ' st ring\ handles. name);set (handles. Iistbox2, ' strmg\ handles. ID):set (handles. Iistbox3,' string7,handles.English):set (handles, listbox^ r string75 handles. Nath);guidata(hObject, handles):function 卩ushbutton2..Callback<hObject, eventdata3 handles)% hObject handle to pu.shbutton.2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) button=Questdlc(,是否确认关闭’,’关闭确认',’是',’否',’是'):if strcmp (button,'是’) closeelseret urn;end[a^name] =xlsread(,student .xlsx'):guidata(hObject, handles):set (handles, edit 1, string handles, guanbi):UKDUUlPb UXl UUllUIl piDAb XII pU^XlUUL I. UIl J.耳function pushbutton3..Callbaclc (hObjectj event data^ handles)申%kObject 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) prcanpt={ input name }: t itle=' input name";najr.e= input dig (prompt, title);i=strcmp (handles・ nanej nanie);[t»j l]=find(i=l):set (handles, listb0x1$ * string,s (hj 1)):set (handles. Iistbox2,' string', handles. ID(h, 1));set (handles. Iistbox3s* st ring *, handl es. Engli sh (h, 1)):set (handles, listbox^ ' st ring \ handles. Nath (h^ 1)):Sfunct i on pushbutton4..Cal l*back (hObject^ event dat① handles)% hObject handle to pushbutton4 (see GCBO)% event data reserved - to be defined in a future version of KATLAB -% handles structure with handles and user da^a (see GUIDATA)prompt = V delete name'}:■title=* delete name* :nane= inputdlg(prompttitle);i=5trcmp (handles.naniE, name):[row, ^ol]=find(i==l);handles.Tiame(row^ :)=[]:handles. ID (rov, :)=[]:handles.Eng 1 ish(r cvr, :) = []:1 iaiidles.Math(ro:)=[].set(handles・ Listboxl, ' string*, handles・ name):set (handles. list'box2J J string5, handles. ID):set (handles・ Listbox3, ' st ring*, handles・ English);set (handles. Listbox^ J string53 handles. Math);•9x= ;xlswrite C student.xlsx,, x』^2:2100"):xlswrit e (' student, xlsx7, handles・ name, * Sheet 1?, A2?);xlswrit e C student. X I SK*, handles・ ID』'Sheet 1'』'):xlswrite C student.xlsx,, handles. English,J Sheet 1:,' C2‘ );・xlswrite C studerrt.xlsx*, handles・ Math, Sheet ' D2‘ ):function pushbut t on5.. C a 1 lb ack (hObject, event da: handles) % hObject handle t o pushbut t on5 (see GCBO)prompt= {' najne\ 'ID' J English',' Hath'}: title= new student' : lines=[1 1 1 1]:answer=inputdlg(prompt,ti11e, lines): n = length (handles, rtajue): handl e s. name {n+1, l}=ans'wer {1, 1}; handles. ID (n+1 j 1) =?.txZxWB (answer {2, 1});handles.English(n+1, 1) = str2nuHi(answer {3^ 1}): handles. Math(n*+l, l)=str2nuni(answer {4, 1});gui dat a (hOb j e ct, handl e s):set (handles ・ listboxl, ' string", handles, name): set (handles ・ lis±box2s ' string 7、handles. ID); set (handles, list box 3,' st ring *, handles. English): (handles, listbox!, stxing ,, handles. Math). 99x= :xlsvrite(, st udent. xlsx \ x, ? A2: Z100*): xlsvrite (' st udent ・ xLsx'」handles ・nam 巴,'Sheet T , A2): xlsvrite (' student ・ xlsx ,t , handles ・ ID,' Sheet TB?'); xlswr ite (' st udent ・ xlsx ? j handles .English 」7 Sheet 17 j ? C2'); xlswrite (r st udent. x 丄 sx\handles .Math,' iheet V ,' DZ"):for.ction pcpupnenul .Callback (hObiect. eventdata, handles) E% l.Object handle to popupnenul (see GCEO)% cvontdats rosorvod - to bo dofinod in s future vorsion of MATLA3-% handles structure wilh handles and user data (see GUIDATA)% Eints: coni ents = cellstr (gel QiObject,J String*)) returns popupnenul cont ent 3 as cell array % cont onto {got (hCbjoct., 7 Valuo^ ) } returns soloct cd item from popupnonul st i=get (hObject, String') val=get (hObject,' Value*);switch stc Ival);caffe English'handles ・ curr ent _ dat a=handle s .English: bar(handles ・English);cac ' Math*handle?・ current_d^t azhindlec ・ Math :bar (handles. Hath)encgaddata (hObjcctjhandles);S% eve nt data reserved. - to be defined in a future version of MATLAB% handles structure vith handles and user data(see GUIDATA)04姓名学号英语数学杭讨A104/>454104 108109527894455855666666644V847778795554882355466644699933755338873443366644V V Viro83604033学生成绩管理系统delete .姓名学号5069993375sa3oe7w33666":?瓷;:"需工.益input naae 匸]|口J区] input name成绩统计绘图关闭[OK ] [ 8耐1 ]英语数学人1088469o45□叵区是否确认关讯ILH 〕d)nev stu•・•匚| j区)5069993375533887344336664478608477787955548523554666449816学生成绩管理系统138.8SB73?「er-.-_3lIR44.X名n奄兰r)«*4l今rGw囲ET«%H伊色。

相关主题