12.07.2015 Views

Lampiran : Flow Chart Disain GUI MATLAB Disain Uicontrol ...

Lampiran : Flow Chart Disain GUI MATLAB Disain Uicontrol ...

Lampiran : Flow Chart Disain GUI MATLAB Disain Uicontrol ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

% --- Executes on button press in PilGen.function PilGen_Callback(hObject, eventdata, handles)% hObject handle to PilGen (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil6=get(handles.PilGen,'value');if nil6==1set(handles.text2,'string','Sisi');set(handles.text3,'string','Tinggi');set(handles.text4,'string','');set(handles.text5,'string','Menghitung Keliling dan Luas pada Jajaran Genjang');set(handles.text6,'string','Sisi Alas');set(handles.text7,'string','Sisi Atas');set(handles.text8,'string','Sisi 3');set(handles.text9,'string','Sisi 4');set(handles.text10,'string','Keliling = Sisi Alas + Sisi Atas + Sisi 3 + Sisi 4');set(handles.text11,'string','Luas = Sisi Alas x Tinggi');set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.edit3,'string','');set(handles.edit4,'string','');set(handles.edit5,'string','');set(handles.edit6,'string','');set(handles.EdKel,'string','');set(handles.EdLuas,'string','');set(handles.PilEmpat,'value',0);set(handles.PilTiga,'value',0);set(handles.PilLay,'value',0);set(handles.PilLing,'value',0);set(handles.PilTrap,'value',0);end% Hint: get(hObject,'Value') returns toggle state of PilGenfunction EdKel_Callback(hObject, eventdata, handles)% hObject handle to EdKel (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of EdKel as text% str2double(get(hObject,'String')) returns contents of EdKel as a double% --- Executes during object creation, after setting all properties.function EdKel_CreateFcn(hObject, eventdata, handles)% hObject handle to EdKel (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% 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,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endfunction EdLuas_Callback(hObject, eventdata, handles)% hObject handle to EdLuas (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of EdLuas as text% str2double(get(hObject,'String')) returns contents of EdLuas as a double% --- Executes during object creation, after setting all properties.function EdLuas_CreateFcn(hObject, eventdata, handles)% hObject handle to EdLuas (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% 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,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endUniversitas Sumatera Utara

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!