• Tidak ada hasil yang ditemukan

BAB IV HASIL PENGAMATAN DAN PEMBAHASAN

4.3. Analisa dan Pembahasan Perangkat Lunak

4.3.2. Aplikasi MATLAB

4.3.2.5. Proses Pengenalan Pisang

Berdasarkan nilai-nilai dari tabel 4.3, maka dibuat sebuah range yang menentukan bentuk pisang tersebut. Untuk level 1 range data yang digunakan yaitu antara 0.00 - 0.05, untuk Level 2 range data yang digunakan yaitu antara 0.05 - 0.25, kemudian Level 3 range data yang digunakan yaitu antara 0.25 - 0.45, untuk Level 4 range data yang digunakan yaitu antara 0.45 - 0.65. untuk Level 5 range data yang digunakan yaitu antara 0.65 - 0.79. untuk Level 6 range data yang digunakan yaitu antara 0.79 - 0.84. untuk Level 7 range data yang digunakan yaitu antara 0.84 - 0.90. Dari data tersebut, maka dapat dibuat range nilai untuk mengetahui dan mengenali dari masing-masing Level pisang. Listing program ditunjukan gambar 4.21.

73

BAB V

KESIMPULAN DAN SARAN

5.1. Kesimpulan

Dari hasil pengujian serta pengambilan data pada aplikasi pengenalan objek untuk conveyor pemisah pisang berdasarkan bentuk warnanya, dapat diambil kesimpulan:

1. Sistem conveyor dapat memindahkan pisang dengan baik sesuai dengan level kematangan pisang.

2. Sistem berhasil untuk mengenali pisang sesuai dengan level kematangan. 3. Pisang dengan kematangan level 6 dan level 7 sulit untuk dibedakan karena

memiliki range proporsi warna kuning yang kecil atau hampir sama. 4. Sistem mampu mengenali level pisang dan berhasil melakukan counting

jumlah pisang yang telah terdeteksi.

5. Gambar proporsi warna kuning pisang pada Matlab, membutuhkan waktu yang cukup lama untuk tampil pada GUI, ketika komunikasi serial.

6. Conveyor belum dapat bergerak dengan cepat.

5.2. Saran

Saran-saran bagi pengembangan selanjutnya adalah:

1. Lebih banyak variasi pengenalan kematangan pisang. 2. Waktu sistem untuk proses conveyor dibuat lebih cepat. 3. Pengidentifikasian pisang tidak hanya dari warnanya. 4. Teliti dalam setting program.

74

Daftar Pustaka

[1] Satuhu, S. dan A. Supriyadi. 2000. Pisang: Budidaya, pengolahandanprospekpasar.

[2] FebryYuniMulato. 2015.

Klasifikasikematanganbuahjambubijimerahdenganmenggunakan model fuzzy, UniversitasNegri Yogyakarta, Yogyakarta,

[3] Prianggono, 2005,pendeteksibuahjeruk lemon padapohonnyasecaraonline/ real time menggunakankamera,

http://repository.ipb.ac.id/bitstream/123456789/40675/3/Bab%202%202006jpr.pdf, diaksestanggal 23 november 2015

[4] Belt conveyor http://id.shvoong.com/social-sciences/education/2224369-belt-conveyor/#ixzz1oYwm5n2t

[5] Perawatan belt conveyor. http://www.informasi-training.com/perawatan-belt-conveyor

[6]

Motor-dchttp://staff.ui.ac.id/system/files/users/chairul.hudaya/material/dcmotorpaperandqa .pdf, diaksespadatanggal 4 desember 2015

[7] Motor-dc http://kk.mercubuana.ac.id/elearning/files_modul/13020-8-86267064764.pdf,diaksespadatanggal 4 desember 2015

[8] Limit switch dansaklar push on, http://elektronika-dasar.web.id/limit-switch-dan-saklar-push-on/

[9] ----, 2011,Data Sheet Mikrokontroler ATmega32, Atmel.

[10] Agus Bejo, 2008, C dan AVR Rahasia Kemudahan Bahasa C dalam Mikrokonroler ATMEGA8535, 1st ed, GRAHA ILMU, Yogyakarta.

[11] Boylestad, R. and Nashelsky. L., Electronic Devices and Circuit Theory, seventh edition, Prentice Hall, New Jersey Columbus, Ohio.

[12] Fathoni, Oktober 2010, Unjuk Kerja Catu Daya 12 Volt 2A dengan Pass Element Transistor NPN dan PNP, Jurnal Neutrino,Vol.3, No.1.

[13] L7805CT Datasheet, PDF

[14] drivermotordc h-bridge transistor, http://elektronika-dasar.web.id/driver-motor-dc-h-bridge-transistor/, diaksespadatanggal 23 febuari 2016.

[15] Hd web cam c170hhttp://www.logitech.com/en-in/product/hd-webcam-c170h ,diakses pada tanggal 20 November 2016.

[16] Budiharto, W., 2008, Panduan Praktikum Mikrokontroler AVR Atmega16, PT Elex Media Komputindo, Jakarta.

[17] http://repository.ipb.ac.id/handle/123456789/74897 diakses pada tanggal 30 maret 2016.

[18] http://digilib.unila.ac.id/1302/8/BAB%20II.pdf, diakses pada tanggal 21 November 2016.

[19] Kadir, Abdul. 2013. Teori dan Aplikasi Pengolahan Citra. Yogyakarta : Andi [20] Thecnikal standards and protocol for fruit ripening chamber in

indiahttp://nhb.gov.in/guideline/cs4.pdf, diaksespadatanggal 28 juli 2016.

[21] Saraswati, Yulia. 2009. Sistem Klasifikasi Jenis Dan Kematangan BuahTomat Berdasarkan Bentuk Dan Ukuran Serta Warna Permukaan KulitBuah Berbasis Pengolahan Citra , Tugas Akhir, Bandung : InstitutTeknologi Telkom.

[22] ussie.staff.gunadarma.ac.id/Downloads/files/13803/segmentasi+Aniati.pdf

[23] Wijaya, M.Ch., dan Prijono, A., 2007, Pengolahan Citra Digital Menggunakan MATLAB, Informatika, Bandung.

[24] Hue,value,saturation, http://learn.leighcotnoir.com/artspeak/elements-color/hue-value-saturation/, diaksespadatanggal28 juli 2016.

[25] Hsv and Hsl, en.wikipedia.org, diaksespadatanggal 3 agustus 2016. [26] EricksRachmatSwediadan Margi Cahyanti, 2010, Pengolahancitra,

alogaritmatransformasiruangwarna, Depok.

[27] Charles A. Poynton (2003). Digital Video and HDTV: Algorithms and Interfaces. Morgan Kaufmann. ISBN 1-55860-792-7.

[28] Digital Image Processing,

http://www.sprawls.org/resources/DIGPROCESS/module.htm#beginning, di aksespadatanggal 2 agustus 2016

[29] Glossary - Look-up Tables and

Colormaps,http://homepages.inf.ed.ac.uk/rbf/HIPR2/colmap.htm, di aksespadatanggal 2 agustus 2016.

[30] Color lookup table en.wikipedia.org, diaksespadatanggal 2 agustus 2016. [31] ----, 2002,Data Sheet Transistor 2N3904, KEC.

[32] ----, 1999,Data Sheet Transistor 2N3055, STMicroelectronics.

[33] Li, C., Cao, Q., dan Guo, F. (2009). A Method for Color Classification of FruitsBased on Machine Vision. WSEAS Transactions on Systems, 8 (2). Shanghai: Shanghai Jiao Tong University.Diakses dari http://www.wseas.us/e-library/transactions/systems/2009/31-909.pdf.diaksespadatanggal 12 mei 2016.

[34] Noviyanto, Ary. (2009). Klasifikasi Tingkat

KematanganVarietasTomatMerahdenganMetodePerbandingan Kadar Warna. Yogyakarta: Universitas Gajah Mada.

PC6/TOSC1PC1/SDAPC0/SCLPC5PC4PC3PC2282726252423 22 PC7/TOSC229 PA6/ADC634 PA5/ADC535 PA4/ADC436 PA3/ADC337 PA2/ADC238 PA1/ADC139 PA0/ADC040 PA7/ADC733 PB6/MISO 7PB5/MOSI 6PB4/SS 5PB3/AIN1/OC0 4PB2/AIN0/INT2 3PB1/T1 2PB0/T0/XCK 1 PB7/SCK 8 PD6/ICP1 20PD5/OC1A 19PD4/OC1B 18PD3/INT1 17PD2/INT0 16PD1/TXD 15PD0/RXD 14 PD7/OC2 21 RESET 9 XTAL1 13 XTAL2 12 AVCCAREF3032 U1 ATMEGA8535 VI 1 VO3 G N D 2 U2 7805 D1 1N4001 C1 100uF C2 100uF Regulator Tegangan 5V DC Saklar R1 330 D2 LED X1 CRYSTAL C4 22pF C5 22pF R2 4k7 C6 1uF 1 2 3 4 10 9 8 7 5 6 J4 CONN-DIL10 Downloader 1 2 3 4 5 6 7 8 J5 CONN-SIL8 1 2 3 4 5 6 7 8 J6 CONN-SIL8 1 2 3 4 5 6 7 8 J7 CONN-SIL8 1 2 3 4 5 6 7 8 J8 CONN-SIL8 GND +5V MOSI Reset SCK MISO DC Source 1234 1 0 987 5 6 J1 CONN-DIL10 +VDC GND1234 8765 J2 CONN-DIL8 1 2 3 J3 CONN-SIL3 1 2 3 J9 CONN-SIL3 123 J10 CONN-SIL3 Push Button PB PD PC PA ARev 1 2 3 J11 CONN-SIL3 R7 100R R8 25k R16 20k R15 100R R11 100R R9 100R R10 25k R12 25k D8 PHOTODIODE D7 IR D16 PHOTODIODE D15 IR D9 IR D10 PHOTODIODE D11 IR D12 PHOTODIODE D13 IR D14 PHOTODIODE R13 100R R14 20k 1 2 3 4 5 6 7 8 J1 PORT C 1 2 3 4 5 6 7 8 J2 PORT B R5 100R R6 20K D5 iR D6 photo D4 PHOTO D3 IR D1 IR D2 PHOTO R2 20k R4 20k R1 100R R3 100 1 J3 PORT D.2 1 J4 CONN-SIL1 Q1 TIP142 Q2 TIP142 Q3 TIP142 Q4 TIP142 R2 1k4 R3 1k4 R4 1k4 R5 1k4 1 2 J1 TBLOCK-I2 1 J2 CONN-SIL1 1 J3 CONN-SIL1 D1 1N5402 D2 1N5402 D3 1N5402 D4 1N5402 1 2 J4 TBLOCK-I2 1 2 J5 TBLOCK-I2 Motor VCC GND PD.0 PD.1 C4 3300uF C6 100uF VI 1 VO 3 G N D 2 U4 7824 Q6 2N3055 D4 1N4002 R18 330 A B BR1 KBPC802 1 2 J1 TBLOCK-I2 Rangkaian Minimum System ATmega32

Rangkaian Untuk Sensor

Driver Motor

Spesifikasi Webcam Logitech C170h [15]

Webcam Logitech C170h [15]

Penaik Tegangan Step Up 5v

Listing Program GUI Matlab

functionvarargout = kenalpisang(varargin) % KENALPISANG M-file for kenalpisang.fig

% KENALPISANG, by itself, creates a new KENALPISANG or raises theexistingsingleton*. % H = KENALPISANG returns the handle to a new KENALPISANG or the handle to the existing singleton*.

% KENALPISANG('CALLBACK',hObject,eventData,handles,...) calls the local

% function named CALLBACK in KENALPISANG.M with the given input arguments. % KENALPISANG('Property','Value',...) creates a new KENALPISANG or raises theexisting singleton*. Starting from the left, property value pairs areapplied to the GUI before

kenalpisang_OpeningFcn gets called. An unrecognized property name or invalid value makes property application

stop. All inputs are passed to kenalpisang_OpeningFcn via varargin.

*See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one instance to run (singleton)".

% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help kenalpisang % Last Modified by GUIDE v2.5 17-Feb-2017 12:05:54

% Begin initialization code - DO NOT EDIT gui_Singleton = 1;

gui_State = struct('gui_Name', mfilename, ...

'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @kenalpisang_OpeningFcn, ... 'gui_OutputFcn', @kenalpisang_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); ifnargin&&ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end ifnargout

[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

else

gui_mainfcn(gui_State, varargin{:});

end

% End initialization code - DO NOT EDIT

% --- Executes just before kenalpisang is made visible.

functionkenalpisang_OpeningFcn(hObject, eventdata, handles, varargin) % This function has no output args, see OutputFcn.

% hObject handle to figure

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % varargin command line arguments to kenalpisang (see VARARGIN) % Choose default command line output for kenalpisang

clc; cla; set(handles.edit1, 'String','0' ); set(handles.edit2, 'String','0'); set(handles.edit3, 'String','0' ); set(handles.edit21, 'String','0' ); set(handles.edit22, 'String','0' ); set(handles.edit23, 'String','0' ); set(handles.edit24, 'String','0' ); set(handles.edit25, 'String','0' ); set(handles.edit26, 'String','0' ); set(handles.edit27, 'String','0' ); global z global level1 global level2 global level3 global level4 global level5 global level6 global level7 z=1; level1=0; level2=0; level3=0; level4=0; level5=0; level6=0; level7=0; handles.output = hObject; % Update handles structure guidata(hObject, handles);

% UIWAIT makes kenalpisang wait for user response (see UIRESUME) % uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line.

functionvarargout = kenalpisang_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure

% handles structure with handles and user data (see GUIDATA) % Get default command line output from handles structure varargout{1} = handles.output;

% UIWAIT makes realtime wait for user response (see UIRESUME) % uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line. functionvarargout = realtime_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 MATLAB % handles structure with handles and user data (see GUIDATA) % Get default command line output from handles structure varargout{1} = handles.output;

% --- Executes on button press in pushbutton1.

function pushbutton1_Callback(hObject, eventdata, handles) % hObject handle to pushbutton2 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) clc; z=1; global level1 global level2 global level3 global level4 global level5 global level6 global level7 guidata(hObject,handles); while z

%data yang dikirimkan

komunikasi=serial(handles.PORT); guidata(hObject,handles);

%setting hardware diperlukan

set(komunikasi,'BaudRate',9600,'DataBits',8,'parity','none','StopBits',1,'FlowControl','none'); %membuka port untukkomunikasi

fopen(komunikasi); out=fscanf(komunikasi); %out=fgets(kom); out1=sprintf('%s',out); disp(out1) out; pause(0.1);

if(out1>=122)

%proses inisialisasi webcam fclose(komunikasi);

vid=videoinput('winvideo',2,'YUY2_320x240'); %proses capture gambar

gambar1=getsnapshot(vid); gambar=yuy2torgb(gambar1); % function [level,propKuning,depan,kuning,depanKuning]=hpisang(gambar) % ---% 1.Segmentasibentukpisangdarikeseluruhancitra hsv=rgb2hsv(gambar); % Konversi RGB ke HSV s1=hsv(:,:,3); % Ambilbagian saturation depan=s1>0.3; % Original: 0.3 depane=bwareaopen(depan,2000); % Original : 1000 % ---% 2.Segmentasiwarnakuningdarikeseluruhancitra s2=hsv(:,:,1); % Ambilbagian hue s3=s2*360; % Setting nilaimaks 360 th1=45; th2=75; s4=s3>th1; s5=s3<th2; kuning=double(s4&s5);% Ambilbagiankuning % ---% 3.Segmentasibentukpisang yang berwarnakuning depanKuning=depane.*kuning;

%

---% 4.Perhitunganproporsibagianpisang yang berwarnakuning % (a) Luasanbagianpisang

luasPisang=sum(sum(depan));

% (b) Proporsibagianpisang yang berwarnakuning propKuning=sum(sum(depanKuning))/luasPisang; axes(handles.axes3);

imshow(gambar); axes(handles.axes5); imshow(depanKuning);

% 5.Pencarianpada Look Up Table

% Nilaitengah level untuk th1=20 dan th2=68

LT=[0.0087 0.1203 0.3593 0.6282 0.7328 0.8751 0.8960]; d=0.001; % Tolerensidarinilaitengah level

if (propKuning>=0) && (propKuning<=0.05) set(handles.edit2, 'string','Level_1'); set(handles.edit1, 'string', 'kotakke 1'); level1=level1 +1;

set(handles.edit21, 'String', level1); guidata(hObject,handles);

fopen(komunikasi); fprintf(komunikasi,'a'); guidata(hObject,handles);

elseif (propKuning>0.05) && (propKuning<=0.25) set(handles.edit2, 'string','Level_2');

set(handles.edit1, 'string', 'kotak_ke_2'); level2=level2 +1;

set(handles.edit22, 'String', level2); guidata(hObject,handles);

fopen(komunikasi); fprintf(komunikasi,'b'); guidata(hObject,handles);

elseif (propKuning>0.25) && (propKuning<=0.45) set(handles.edit2, 'string','Level_3');

set(handles.edit1, 'string', 'kotak_ke_2'); level3=level3 +1;

set(handles.edit23, 'String', level3); guidata(hObject,handles);

fopen(komunikasi); fprintf(komunikasi,'b'); guidata(hObject,handles);

elseif (propKuning>0.45) && (propKuning<=0.65) set(handles.edit2, 'string','Level_4');

set(handles.edit1, 'string', 'kotak_ke_3'); level4=level4 +1;

set(handles.edit24, 'String', level4); guidata(hObject,handles);

fopen(komunikasi); fprintf(komunikasi,'c'); guidata(hObject,handles);

elseif (propKuning>0.65) && (propKuning<=0.79) set(handles.edit2, 'string','Level_5');

level5=level5 +1;

set(handles.edit25, 'String', level5); set(handles.edit1, 'string', 'kotak_ke_3'); guidata(hObject,handles);

fopen(komunikasi); fprintf(komunikasi,'c'); guidata(hObject,handles);

set(handles.edit2, 'string','Level_6'); level6=level6 +1;

set(handles.edit26, 'String', level6); set(handles.edit1, 'string', 'kotak_ke_4'); guidata(hObject,handles);

fopen(komunikasi); fprintf(komunikasi,'d'); guidata(hObject,handles);

elseif (propKuning>0.84) && (propKuning<=0.89) set(handles.edit2, 'string','Level_7');

level7=level7 +1;

set(handles.edit27, 'String', level7); set(handles.edit1, 'string', 'kotak_ke_4'); guidata(hObject,handles); fopen(komunikasi); fprintf(komunikasi,'d'); guidata(hObject,handles); end end fclose(komunikasi); delete(komunikasi) clearkomunikasi clc; cla; 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 MATLAB % handles structure with handles and user data (see GUIDATA) cla; clc; global level1 global level2 global level3 global level4 global level5 global level6 global level7 level1=0; level2=0; level3=0; level4=0; level5=0; level6=0; level7=0; set(handles.edit1, 'String', '0' );

set(handles.edit2, 'String', '0' ); set(handles.edit3, 'String', '0' ); set(handles.edit21, 'String', '0' ); set(handles.edit22, 'String', '0' ); set(handles.edit23, 'String', '0' ); set(handles.edit24, 'String', '0' ); set(handles.edit25, 'String', '0' ); set(handles.edit26, 'String', '0' ); set(handles.edit27, '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 MATLAB % handles structure with handles and user data (see GUIDATA) closeall;

clearall;

function edit1_Callback(hObject, eventdata, handles) % hObject handle to edit1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit1 as text

% str2double(get(hObject,'String')) returns contents of edit1 as a double

% --- Executes during object creation, after setting all properties. function edit1_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

ifispc&&isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');

end

function edit2_Callback(hObject, eventdata, handles) % hObject handle to edit2 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit2 as text

% --- Executes during object creation, after setting all properties. function edit2_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit2 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

ifispc&&isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');

end

function edit3_Callback(hObject, eventdata, handles) % hObject handle to edit3 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit3 as text

% str2double(get(hObject,'String')) returns contents of edit3 as a double

% --- Executes during object creation, after setting all properties. function edit3_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit3 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

ifispc&&isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');

end

% --- Executes on selection change in popupmenu1.

function popupmenu2_Callback(hObject, eventdata, handles) % hObject handle to popupmenu1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu1 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu1

contents = get(hObject,'Value');

switch contents

case 1

handles.PORT='COM1';

case 2

case 3 handles.PORT='COM3'; case 4 handles.PORT='COM4'; case 5 handles.PORT='COM5'; case 6 handles.PORT='COM6'; case 7 handles.PORT='COM7'; case 8 handles.PORT='COM8'; case 9 handles.PORT='COM9'; case 10 handles.PORT='COM10'; case 11 handles.PORT='COM11'; case 12 handles.PORT='COM12'; case 13 handles.PORT='COM13'; case 14 handles.PORT='COM14'; case 15 handles.PORT='COM15'; end guidata(hObject,handles);

% --- Executes during object creation, after setting all properties. function popupmenu1_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu1 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: popupmenu controls usually have a white background on Windows. % See ISPC and COMPUTER.

ifispc&&isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');

end

function edit4_Callback(hObject, eventdata, handles) % hObject handle to edit4 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit4 as text

% --- Executes during object creation, after setting all properties. function edit4_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit4 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

ifispc&&isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');

end

function edit5_Callback(hObject, eventdata, handles) % hObject handle to edit5 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit5 as text

% str2double(get(hObject,'String')) returns contents of edit5 as a double

% --- Executes during object creation, after setting all properties. function edit5_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit5 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

ifispc&&isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');

end

function edit6_Callback(hObject, eventdata, handles) % hObject handle to edit6 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit6 as text

% str2double(get(hObject,'String')) returns contents of edit6 as a double

% --- Executes during object creation, after setting all properties. function edit6_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit6 (see GCBO)

% handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

ifispc&&isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');

end

function edit7_Callback(hObject, eventdata, handles) % hObject handle to edit7 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit7 as text

% str2double(get(hObject,'String')) returns contents of edit7 as a double

% --- Executes during object creation, after setting all properties. function edit7_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit7 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

ifispc&&isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');

end

function edit8_Callback(hObject, eventdata, handles) % hObject handle to edit8 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit8 as text

% str2double(get(hObject,'String')) returns contents of edit8 as a double

% --- Executes during object creation, after setting all properties. function edit8_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit8 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

set(hObject,'BackgroundColor','white');

end

function edit9_Callback(hObject, eventdata, handles) % hObject handle to edit9 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit9 as text

% str2double(get(hObject,'String')) returns contents of edit9 as a double

% --- Executes during object creation, after setting all properties. function edit9_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit9 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

ifispc&&isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');

end

function edit10_Callback(hObject, eventdata, handles) % hObject handle to edit10 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit10 as text

% str2double(get(hObject,'String')) returns contents of edit10 as a double

% --- Executes during object creation, after setting all properties. function edit10_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit10 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

ifispc&&isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');

function edit12_Callback(hObject, eventdata, handles) % hObject handle to edit12 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit12 as text

% str2double(get(hObject,'String')) returns contents of edit12 as a double

% --- Executes during object creation, after setting all properties. function edit12_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit12 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

ifispc&&isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');

end

function edit21_Callback(hObject, eventdata, handles) % hObject handle to edit21 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit21 as text

% str2double(get(hObject,'String')) returns contents of edit21 as a double

% --- Executes during object creation, after setting all properties. function edit21_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit21 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

ifispc&&isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');

end

function edit22_Callback(hObject, eventdata, handles) % hObject handle to edit22 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit22 as text

% str2double(get(hObject,'String')) returns contents of edit22 as a double

% --- Executes during object creation, after setting all properties. function edit22_CreateFcn(hObject, eventdata, handles)

% hObject handle to edit22 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER.

ifispc&&isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');

end

function edit23_Callback(hObject, eventdata, handles) % hObject handle to edit23 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of edit23 as text

Dokumen terkait