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.

set(handles.EditX1,'String','i');set(handles.EditX2,'String','i');elseif D==0set(handles.text7,'String','Persamaan memiliki akar-akar yang real dan sama');set(handles.EditX1,'String',x1);set(handles.EditX2,'String',x2);elseif D>0set(handles.text7,'String','Persamaan memiliki akar-akar yang real danberlainan');set(handles.EditX1,'String',x1);set(handles.EditX2,'String',x2);endfunction EditX1_Callback(hObject, eventdata, handles)% hObject handle to EditX1 (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 EditX1 as text% str2double(get(hObject,'String')) returns contents of EditX1 as a double% --- Executes during object creation, after setting all properties.function EditX1_CreateFcn(hObject, eventdata, handles)% hObject handle to EditX1 (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 EditX2_Callback(hObject, eventdata, handles)% hObject handle to EditX2 (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 EditX2 as text% str2double(get(hObject,'String')) returns contents of EditX2 as a double% --- Executes during object creation, after setting all properties.function EditX2_CreateFcn(hObject, eventdata, handles)% hObject handle to EditX2 (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');end% --- Executes on button press in pushbutton2.function pushbutton2_Callback(hObject, eventdata, handles)% hObject handle to pushbutton2 (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)set(handles.text7,'String','');set(handles.EditA,'String','0');set(handles.EditB,'String','0');set(handles.EditC,'String','0');set(handles.EditX1,'String','0');set(handles.EditX2,'String','0');% --- Executes on button press in pushbutton3.function pushbutton3_Callback(hObject, eventdata, handles)% hObject handle to pushbutton3 (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)close;Universitas Sumatera Utara

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

Saved successfully!

Ooh no, something went wrong!