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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

% hObject handle to TombPngktTiga (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)myform = guidata(gcbo);dat1=str2double(get(myform.EdData1,'String'));dat2=str2double(get(myform.EdData2,'String'));na=(dat1^3)set(myform.EdHasil,'String', num2str(na));% --- Executes on button press in TombLn.function TombLn_Callback(hObject, eventdata, handles)% hObject handle to TombLn (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)myform = guidata(gcbo);dat1=str2double(get(myform.EdData1,'String'));dat2=str2double(get(myform.EdData2,'String'));na=log(dat1)set(myform.EdHasil,'String', num2str(na));% --- Executes on button press in TombLog.function TombLog_Callback(hObject, eventdata, handles)% hObject handle to TombLog (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)myform = guidata(gcbo);dat1=str2double(get(myform.EdData1,'String'));dat2=str2double(get(myform.EdData2,'String'));na=log10(dat1)set(myform.EdHasil,'String', num2str(na));function EdData1_Callback(hObject, eventdata, handles)% hObject handle to EdData1 (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 EdData1 as text% str2double(get(hObject,'String')) returns contents of EdData1 as a double% --- Executes during object creation, after setting all properties.function EdData1_CreateFcn(hObject, eventdata, handles)% hObject handle to EdData1 (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 EdData2_Callback(hObject, eventdata, handles)% hObject handle to EdData2 (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 EdData2 as text% str2double(get(hObject,'String')) returns contents of EdData2 as a doubleUniversitas Sumatera Utara

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

Saved successfully!

Ooh no, something went wrong!