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.

% --- Outputs from this function are returned to the command line.function varargout = Operasi_Dasar_Matematika_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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Get default command line output from handles structurevarargout{1} = handles.output;function EdHasil_Callback(hObject, eventdata, handles)% hObject handle to EdHasil (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 EdHasil as text% str2double(get(hObject,'String')) returns contents of EdHasil as a double% --- Executes during object creation, after setting all properties.function EdHasil_CreateFcn(hObject, eventdata, handles)% hObject handle to EdHasil (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 TombKali.function TombKali_Callback(hObject, eventdata, handles)% hObject handle to TombKali (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 * dat2)set(myform.EdHasil,'String', num2str(na));% --- Executes on button press in TombTambah.function TombTambah_Callback(hObject, eventdata, handles)% hObject handle to TombTambah (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+ dat2)set(myform.EdHasil,'String', num2str(na));% --- Executes during object creation, after setting all properties.function TombTambah_CreateFcn(hObject, eventdata, handles)% hObject handle to TombTambah (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% --- Executes on button press in TombKurang.function TombKurang_Callback(hObject, eventdata, handles)% hObject handle to TombKurang (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 - dat2)Universitas Sumatera Utara

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

Saved successfully!

Ooh no, something went wrong!