LAMPIRAN A LISTING PROGRAM

1. Form Utama function varargout = utama(varargin) % UTAMA M-file for utama.fig % UTAMA, by itself, creates a new UTAMA or raises the existing % singleton*. % % H = UTAMA returns the handle to a new UTAMA or the handle to % the existing singleton*. % % UTAMA('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in UTAMA.M with the given input arguments. % % UTAMA('Property','Value',...) creates a new UTAMA or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before utama_OpeningFcn gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to utama_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 utama % Last Modified by GUIDE v2.5 01-May-2012 10:39:27 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @utama_OpeningFcn, ... 'gui_OutputFcn', @utama_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end if nargout [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); else gui_mainfcn(gui_State, varargin{:});

end % End initialization code - DO NOT EDIT

% --- Executes just before utama is made visible. function utama_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 utama (see VARARGIN) % Choose default command line output for utama handles.output = hObject; % Update handles structure guidata(hObject, handles); % UIWAIT makes utama wait for user response (see UIRESUME) % uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line. function varargout = utama_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 btn_start. function btn_start_Callback(hObject, eventdata, handles) % hObject handle to btn_start (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) aplikasi

% --- Executes on button press in btn_exit. function btn_exit_Callback(hObject, eventdata, handles) % hObject handle to btn_exit (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) selection=tutup('Title','Exit Confirmation'); switch lower(selection) case 'yes'

close case 'no' %no action end 2. Form Aplikasi function varargout = aplikasi(varargin) % APLIKASI M-file for aplikasi.fig % APLIKASI, by itself, creates a new APLIKASI or raises the existing % singleton*. % % H = APLIKASI returns the handle to a new APLIKASI or the handle to % the existing singleton*. % % APLIKASI('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in APLIKASI.M with the given input arguments. % % APLIKASI('Property','Value',...) creates a new APLIKASI or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before aplikasi_OpeningFcn gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to aplikasi_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 aplikasi % Last Modified by GUIDE v2.5 01-May-2012 19:55:19 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @aplikasi_OpeningFcn, ... 'gui_OutputFcn', @aplikasi_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end if nargout [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); else gui_mainfcn(gui_State, varargin{:});

end % End initialization code - DO NOT EDIT

% --- Executes just before aplikasi is made visible. function aplikasi_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 aplikasi (see VARARGIN) % Choose default command line output for aplikasi handles.output = hObject; % Update handles structure guidata(hObject, handles); % UIWAIT makes aplikasi wait for user response (see UIRESUME) % uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line. function varargout = aplikasi_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 btn_open. function btn_open_Callback(hObject, eventdata, handles) % hObject handle to btn_open (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) [nama_file,nama_path] = uigetfile({'*.jpg','File jpeg(*.jpg)'},'Buka File Citra'); if ~isequal(nama_file,0) handles.citra = imread(fullfile(nama_path,nama_file)); guidata(hObject,handles); axes(handles.axes_citra); imshow(handles.citra); else return; end; % --- Executes on button press in btn_test. function btn_test_Callback(hObject, eventdata, handles)

% hObject handle to btn_test (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) citra = double(handles.citra); [b k] = size(citra); for x=1:b for y=1:k if citra(x,y)=128 citra(x,y)=1; end end end p = citra; p = [reshape(p,1089,1)]; net1 = newp(minmax(p),1); net1.IW{1,1} = textread('bobot1.txt'); net1.b{1} = textread('bias1.txt'); net2 = newp(minmax(p),1); net2.IW{1,1} = textread('bobot2.txt'); net2.b{1} = textread('bias2.txt'); net3 = newp(minmax(p),1); net3.IW{1,1} = textread('bobot3.txt'); net3.b{1} = textread('bias3.txt'); net4 = newp(minmax(p),1); net4.IW{1,1} = textread('bobot4.txt'); net4.b{1} = textread('bias4.txt'); net5 = newp(minmax(p),1); net5.IW{1,1} = textread('bobot5.txt'); net5.b{1} = textread('bias5.txt'); net6 = newp(minmax(p),1); net6.IW{1,1} = textread('bobot6.txt'); net6.b{1} = textread('bias6.txt'); net7 = newp(minmax(p),1); net7.IW{1,1} = textread('bobot7.txt'); net7.b{1} = textread('bias7.txt'); net8 = newp(minmax(p),1); net8.IW{1,1} = textread('bobot8.txt'); net8.b{1} = textread('bias8.txt'); net9 = newp(minmax(p),1); net9.IW{1,1} = textread('bobot9.txt'); net9.b{1} = textread('bias9.txt'); net10 = newp(minmax(p),1); net10.IW{1,1} = textread('bobot10.txt'); net10.b{1} = textread('bias10.txt'); net11 = newp(minmax(p),1); net11.IW{1,1} = textread('bobot11.txt');

net11.b{1} = textread('bias11.txt'); net12 = newp(minmax(p),1); net12.IW{1,1} = textread('bobot12.txt'); net12.b{1} = textread('bias12.txt'); net13 = newp(minmax(p),1); net13.IW{1,1} = textread('bobot13.txt'); net13.b{1} = textread('bias13.txt'); net14 = newp(minmax(p),1); net14.IW{1,1} = textread('bobot14.txt'); net14.b{1} = textread('bias14.txt'); net15 = newp(minmax(p),1); net15.IW{1,1} = textread('bobot15.txt'); net15.b{1} = textread('bias15.txt'); net16 = newp(minmax(p),1); net16.IW{1,1} = textread('bobot16.txt'); net16.b{1} = textread('bias16.txt'); y1 = sim(net1,p); y2 = sim(net2,p); y3 = sim(net3,p); y4 = sim(net4,p); y5 = sim(net5,p); y6 = sim(net6,p); y7 = sim(net7,p); y8 = sim(net8,p); y9 = sim(net9,p); y10 = sim(net10,p); y11 = sim(net11,p); y12 = sim(net12,p); y13 = sim(net13,p); y14 = sim(net14,p); y15 = sim(net15,p); y16 = sim(net16,p); if(y1==1 && y2==0 && y3==0 && y4==0 && y5==0 && y6==0 && y7==0 && y8==0 && y9==0 && y10==0 && y11==0 && y12==0 && y13==0 && y14==0 && y15==0 && y16==0) hasil = 'Universitas Gajah Mada Yogya'; elseif(y1==0 && y2==1 && y3==0 && y4==0 && y5==0 && y6==0 && y7==0 && y8==0 && y9==0 && y10==0 && y11==0 && y12==0 && y13==0 && y14==0 && y15==0 && y16==0) hasil = 'Universitas Indonesia Jakarta'; elseif(y1==0 && y2==0 && y3==1 && y4==0 && y5==0 && y6==0 && y7==0 && y8==0 && y9==0 && y10==0 && y11==0 && y12==0 && y13==0 && y14==0 && y15==0 && y16==0) hasil = 'Universitas Sumatera Utara'; elseif(y1==0 && y2==0 && y3==0 && y4==1 && y5==0 && y6==0 && y7==0 && y8==0 && y9==0 && y10==0 && y11==0 && y12==0 && y13==0 && y14==0 && y15==0 && y16==0) hasil = 'Universitas Airlangga Surabaya';

elseif(y1==0 && y2==0 && y3==0 && y4==0 && y5==1 && y6==0 && y7==0 && y8==0 && y9==0 && y10==0 && y11==0 && y12==0 && y13==0 && y14==0 && y15==0 && y16==0) hasil = 'Universitas Hasanudin Makassar'; elseif(y1==0 && y2==0 && y3==0 && y4==0 && y5==0 && y6==1 && y7==0 && y8==0 && y9==0 && y10==0 && y11==0 && y12==0 && y13==0 && y14==0 && y15==0 && y16==0) hasil = 'Universitas Andalas Padang'; elseif(y1==0 && y2==0 && y3==0 && y4==0 && y5==0 && y6==0 && y7==1 && y8==0 && y9==0 && y10==0 && y11==0 && y12==0 && y13==0 && y14==0 && y15==0 && y16==0) hasil = 'Universitas Padjajaran Bandung'; elseif(y1==0 && y2==0 && y3==0 && y4==0 && y5==0 && y6==0 && y7==0 && y8==1 && y9==0 && y10==0 && y11==0 && y12==0 && y13==0 && y14==0 && y15==0 && y16==0) hasil = 'Universitas Diponegoro Semarang'; elseif(y1==0 && y2==0 && y3==0 && y4==0 && y5==0 && y6==0 && y7==0 && y8==0 && y9==1 && y10==0 && y11==0 && y12==0 && y13==0 && y14==0 && y15==0 && y16==0) hasil = 'Universitas Sriwijaya Palembang'; elseif(y1==0 && y2==0 && y3==0 && y4==0 && y5==0 && y6==0 && y7==0 && y8==0 && y9==0 && y10==1 && y11==0 && y12==0 && y13==0 && y14==0 && y15==0 && y16==0) hasil = 'Universitas Lambung Mangkurat'; elseif(y1==0 && y2==0 && y3==0 && y4==0 && y5==0 && y6==0 && y7==0 && y8==0 && y9==0 && y10==0 && y11==1 && y12==0 && y13==0 && y14==0 && y15==0 && y16==0) hasil = 'Universitas Syiah Kuala Banda'; elseif(y1==0 && y2==0 && y3==0 && y4==0 && y5==0 && y6==0 && y7==0 && y8==0 && y9==0 && y10==0 && y11==0 && y12==1 && y13==0 && y14==0 && y15==0 && y16==0) hasil = 'Universitas Sam Ratulangi'; elseif(y1==0 && y2==0 && y3==0 && y4==0 && y5==0 && y6==0 && y7==0 && y8==0 && y9==0 && y10==0 && y11==0 && y12==0 && y13==1 && y14==0 && y15==0 && y16==0) hasil = 'Universitas Udayana Denpasar'; elseif(y1==0 && y2==0 && y3==0 && y4==0 && y5==0 && y6==0 && y7==0 && y8==0 && y9==0 && y10==0 && y11==0 && y12==0 && y13==0 && y14==1 && y15==0 && y16==0) hasil = 'Universitas Nusa Cendana'; elseif(y1==0 && y2==0 && y3==0 && y4==0 && y5==0 && y6==0 && y7==0 && y8==0 && y9==0 && y10==0 && y11==0 && y12==0 && y13==0 && y14==0 && y15==1 && y16==0) hasil = 'Universitas Mulawarman Samarinda'; elseif(y1==0 && y2==0 && y3==0 && y4==0 && y5==0 && y6==0 && y7==0 && y8==0 && y9==0 && y10==0 && y11==0 && y12==0 && y13==0 && y14==0 && y15==0 && y16==1) hasil = 'Universitas Mataram, Mataram'; else

hasil = 'ERROR'; end set(handles.ed_hasil,'String',hasil);

% --- Executes on button press in btn_reset. function btn_reset_Callback(hObject, eventdata, handles) % hObject handle to btn_reset (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) set(handles.ed_hasil,'String','');

% --- Executes on button press in btn_tutup. function btn_tutup_Callback(hObject, eventdata, handles) % hObject handle to btn_tutup (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) close utama

function ed_hasil_Callback(hObject, eventdata, handles) % hObject handle to ed_hasil (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 ed_hasil as text % str2double(get(hObject,'String')) returns contents of ed_hasil as a double

% --- Executes during object creation, after setting all properties. function ed_hasil_CreateFcn(hObject, eventdata, handles) % hObject handle to ed_hasil (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. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end 3. Form Tutup kfunction varargout = tutup(varargin) % TUTUP M-file for tutup.fig % TUTUP by itself, creates a new TUTUP or raises the

% existing singleton*. % % H = TUTUP returns the handle to a new TUTUP or the handle to % the existing singleton*. % % TUTUP('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in TUTUP.M with the given input arguments. % % TUTUP('Property','Value',...) creates a new TUTUP or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before tutup_OpeningFcn gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to tutup_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 tutup % Last Modified by GUIDE v2.5 24-May-2012 19:16:25 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @tutup_OpeningFcn, ... 'gui_OutputFcn', @tutup_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end if nargout [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); else gui_mainfcn(gui_State, varargin{:}); end % End initialization code - DO NOT EDIT % --- Executes just before tutup is made visible. function tutup_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 tutup (see VARARGIN)

% Choose default command line output for tutup handles.output = 'Yes'; % Update handles structure guidata(hObject, handles); % Insert custom Title and Text if specified by the user % Hint: when choosing keywords, be sure they are not easily confused % with existing figure properties. See the output of set(figure) for % a list of figure properties. if(nargin > 3) for index = 1:2:(nargin-3), if nargin-3==index, break, end switch lower(varargin{index}) case 'title' set(hObject, 'Name', varargin{index+1}); case 'string' set(handles.text1, 'String', varargin{index+1}); end end end % Determine the position of the dialog - centered on the callback figure % if available, else, centered on the screen FigPos=get(0,'DefaultFigurePosition'); OldUnits = get(hObject, 'Units'); set(hObject, 'Units', 'pixels'); OldPos = get(hObject,'Position'); FigWidth = OldPos(3); FigHeight = OldPos(4); if isempty(gcbf) ScreenUnits=get(0,'Units'); set(0,'Units','pixels'); ScreenSize=get(0,'ScreenSize'); set(0,'Units',ScreenUnits); FigPos(1)=1/2*(ScreenSize(3)-FigWidth); FigPos(2)=2/3*(ScreenSize(4)-FigHeight); else GCBFOldUnits = get(gcbf,'Units'); set(gcbf,'Units','pixels'); GCBFPos = get(gcbf,'Position'); set(gcbf,'Units',GCBFOldUnits); FigPos(1:2) = [(GCBFPos(1) + GCBFPos(3) / 2) - FigWidth / 2, ... (GCBFPos(2) + GCBFPos(4) / 2) - FigHeight / 2]; end FigPos(3:4)=[FigWidth FigHeight]; set(hObject, 'Position', FigPos);

set(hObject, 'Units', OldUnits); % Show a question icon from dialogicons.mat - variables questIconData % and questIconMap load dialogicons.mat IconData=questIconData; questIconMap(256,:) = get(handles.figure1, 'Color'); IconCMap=questIconMap; Img=image(IconData, 'Parent', handles.axes1); set(handles.figure1, 'Colormap', IconCMap); set(handles.axes1, ... 'Visible', 'off', ... 'YDir' , 'reverse' , ... 'XLim' , get(Img,'XData'), ... 'YLim' , get(Img,'YData') ... ); % Make the GUI modal set(handles.figure1,'WindowStyle','modal') % UIWAIT makes tutup wait for user response (see UIRESUME) uiwait(handles.figure1); % --- Outputs from this function are returned to the command line. function varargout = tutup_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; % The figure can be deleted now delete(handles.figure1); % --- Executes on button press in btn_yes. function btn_yes_Callback(hObject, eventdata, handles) % hObject handle to btn_yes (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) handles.output = get(hObject,'String'); % Update handles structure guidata(hObject, handles);

% Use UIRESUME instead of delete because the OutputFcn needs % to get the updated handles structure. uiresume(handles.figure1); % --- Executes on button press in btn_no. function btn_no_Callback(hObject, eventdata, handles) % hObject handle to btn_no (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) handles.output = get(hObject,'String'); % Update handles structure guidata(hObject, handles); % Use UIRESUME instead of delete because the OutputFcn needs % to get the updated handles structure. uiresume(handles.figure1);

% --- Executes when user attempts to close figure1. function figure1_CloseRequestFcn(hObject, eventdata, handles) % hObject handle to figure1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) if isequal(get(handles.figure1, 'waitstatus'), 'waiting') % The GUI is still in UIWAIT, us UIRESUME uiresume(handles.figure1); else % The GUI is no longer waiting, just close it delete(handles.figure1); end

% --- Executes on key press over figure1 with no controls selected. function figure1_KeyPressFcn(hObject, eventdata, handles) % hObject handle to figure1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Check for "enter" or "escape" if isequal(get(hObject,'CurrentKey'),'escape') % User said no by hitting escape handles.output = 'No'; % Update handles structure guidata(hObject, handles);

uiresume(handles.figure1); end if isequal(get(hObject,'CurrentKey'),'return') uiresume(handles.figure1); end 4. File Pelatihan p1 = textread('pattern1.txt'); p2 = textread('pattern2.txt'); p3 = textread('pattern3.txt'); p4 = textread('pattern4.txt'); p5 = textread('pattern5.txt'); p6 = textread('pattern6.txt'); p7 = textread('pattern7.txt'); p8 = textread('pattern8.txt'); p9 = textread('pattern9.txt'); p10 = textread('pattern10.txt'); p11 = textread('pattern11.txt'); p12 = textread('pattern12.txt'); p13 = textread('pattern13.txt'); p14 = textread('pattern14.txt'); p15 = textread('pattern15.txt'); p16 = textread('pattern16.txt'); p17 = textread('pattern17.txt'); p18 = textread('pattern18.txt'); p19 = textread('pattern19.txt'); p20 = textread('pattern20.txt'); p21 = textread('pattern21.txt'); p22 = textread('pattern22.txt'); p23 = textread('pattern23.txt'); p24 = textread('pattern24.txt'); p25 = textread('pattern25.txt'); p26 = textread('pattern26.txt'); p27 = textread('pattern27.txt'); p28 = textread('pattern28.txt'); p29 = textread('pattern29.txt'); p30 = textread('pattern30.txt'); p31 = textread('pattern31.txt'); p32 = textread('pattern32.txt'); p33 = textread('pattern33.txt'); p34 = textread('pattern34.txt'); p35 = textread('pattern35.txt'); p36 = textread('pattern36.txt'); p37 = textread('pattern37.txt'); p38 = textread('pattern38.txt'); p39 = textread('pattern39.txt'); p40 = textread('pattern40.txt');

p1 = reshape(p1,1089,1); p2 = reshape(p2,1089,1); p3 = reshape(p3,1089,1); p4 = reshape(p4,1089,1); p5 = reshape(p5,1089,1); p6 = reshape(p6,1089,1); p7 = reshape(p7,1089,1); p8 = reshape(p8,1089,1); p9 = reshape(p9,1089,1); p10 = reshape(p10,1089,1); p11 = reshape(p11,1089,1); p12 = reshape(p12,1089,1); p13 = reshape(p13,1089,1); p14 = reshape(p14,1089,1); p15 = reshape(p15,1089,1); p16 = reshape(p16,1089,1); p17 = reshape(p17,1089,1); p18 = reshape(p18,1089,1); p19 = reshape(p19,1089,1); p20 = reshape(p20,1089,1); p21 = reshape(p21,1089,1); p22 = reshape(p22,1089,1); p23 = reshape(p23,1089,1); p24 = reshape(p24,1089,1); p25 = reshape(p25,1089,1); p26 = reshape(p26,1089,1); p27 = reshape(p27,1089,1); p28 = reshape(p28,1089,1); p29 = reshape(p29,1089,1); p30 = reshape(p30,1089,1); p31 = reshape(p31,1089,1); p32 = reshape(p32,1089,1); p33 = reshape(p33,1089,1); p34 = reshape(p34,1089,1); p35 = reshape(p35,1089,1); p36 = reshape(p36,1089,1); p37 = reshape(p37,1089,1); p38 = reshape(p38,1089,1); p39 = reshape(p39,1089,1); p40 = reshape(p40,1089,1);

p41 p42 p43 p44 p45 p46 p47 p48 p49 p50 p51 p52 p53 p54 p55 p56 p57 p58 p59 p60 p61 p62 p63 p64 p65 p66 p67 p68 p69 p70 p71 p72 p73 p74 p75 p76 p77 p78 p79 p80 p81 p82 p83 p84 p85 p86 p87 p88 p89

= textread('pattern41.txt'); = textread('pattern42.txt'); = textread('pattern43.txt'); = textread('pattern44.txt'); = textread('pattern45.txt'); = textread('pattern46.txt'); = textread('pattern47.txt'); = textread('pattern48.txt'); = textread('pattern49.txt'); = textread('pattern50.txt'); = textread('pattern51.txt'); = textread('pattern52.txt'); = textread('pattern53.txt'); = textread('pattern54.txt'); = textread('pattern55.txt'); = textread('pattern56.txt'); = textread('pattern57.txt'); = textread('pattern58.txt'); = textread('pattern59.txt'); = textread('pattern60.txt'); = textread('pattern61.txt'); = textread('pattern62.txt'); = textread('pattern63.txt'); = textread('pattern64.txt'); = textread('pattern65.txt'); = textread('pattern66.txt'); = textread('pattern67.txt'); = textread('pattern68.txt'); = textread('pattern69.txt'); = textread('pattern70.txt'); = textread('pattern71.txt'); = textread('pattern72.txt'); = textread('pattern73.txt'); = textread('pattern74.txt'); = textread('pattern75.txt'); = textread('pattern76.txt'); = textread('pattern77.txt'); = textread('pattern78.txt'); = textread('pattern79.txt'); = textread('pattern80.txt'); = textread('pattern81.txt'); = textread('pattern82.txt'); = textread('pattern83.txt'); = textread('pattern84.txt'); = textread('pattern85.txt'); = textread('pattern86.txt'); = textread('pattern87.txt'); = textread('pattern88.txt'); = textread('pattern89.txt');

p41 p42 p43 p44 p45 p46 p47 p48 p49 p50 p51 p52 p53 p54 p55 p56 p57 p58 p59 p60 p61 p62 p63 p64 p65 p66 p67 p68 p69 p70 p71 p72 p73 p74 p75 p76 p77 p78 p79 p80 p81 p82 p83 p84 p85 p86 p87 p88 p89

= reshape(p41,1089,1); = reshape(p42,1089,1); = reshape(p43,1089,1); = reshape(p44,1089,1); = reshape(p45,1089,1); = reshape(p46,1089,1); = reshape(p47,1089,1); = reshape(p48,1089,1); = reshape(p49,1089,1); = reshape(p50,1089,1); = reshape(p51,1089,1); = reshape(p52,1089,1); = reshape(p53,1089,1); = reshape(p54,1089,1); = reshape(p55,1089,1); = reshape(p56,1089,1); = reshape(p57,1089,1); = reshape(p58,1089,1); = reshape(p59,1089,1); = reshape(p60,1089,1); = reshape(p61,1089,1); = reshape(p62,1089,1); = reshape(p63,1089,1); = reshape(p64,1089,1); = reshape(p65,1089,1); = reshape(p66,1089,1); = reshape(p67,1089,1); = reshape(p68,1089,1); = reshape(p69,1089,1); = reshape(p70,1089,1); = reshape(p71,1089,1); = reshape(p72,1089,1); = reshape(p73,1089,1); = reshape(p74,1089,1); = reshape(p75,1089,1); = reshape(p76,1089,1); = reshape(p77,1089,1); = reshape(p78,1089,1); = reshape(p79,1089,1); = reshape(p80,1089,1); = reshape(p81,1089,1); = reshape(p82,1089,1); = reshape(p83,1089,1); = reshape(p84,1089,1); = reshape(p85,1089,1); = reshape(p86,1089,1); = reshape(p87,1089,1); = reshape(p88,1089,1); = reshape(p89,1089,1);

p90 = textread('pattern90.txt'); p90 = reshape(p90,1089,1); p91 = textread('pattern91.txt'); p91 = reshape(p91,1089,1); p92 = textread('pattern92.txt'); p92 = reshape(p92,1089,1); p93 = textread('pattern93.txt'); p93 = reshape(p93,1089,1); p94 = textread('pattern94.txt'); p94 = reshape(p94,1089,1); p95 = textread('pattern95.txt'); p95 = reshape(p95,1089,1); p96 = textread('pattern96.txt'); p96 = reshape(p96,1089,1); p97 = textread('pattern97.txt'); p97 = reshape(p97,1089,1); p98 = textread('pattern98.txt'); p98 = reshape(p98,1089,1); p99 = textread('pattern99.txt'); p99 = reshape(p99,1089,1); p100 = textread('pattern100.txt'); p100 = reshape(p100,1089,1); p101 = textread('pattern101.txt'); p101 = reshape(p101,1089,1); p102 = textread('pattern102.txt'); p102 = reshape(p102,1089,1); p103 = textread('pattern103.txt'); p103 = reshape(p103,1089,1); p104 = textread('pattern104.txt'); p104 = reshape(p104,1089,1); p105 = textread('pattern105.txt'); p105 = reshape(p105,1089,1); p106 = textread('pattern106.txt'); p106 = reshape(p106,1089,1); p107 = textread('pattern107.txt'); p107 = reshape(p107,1089,1); p108 = textread('pattern108.txt'); p108 = reshape(p108,1089,1); p109 = textread('pattern109.txt'); p109 = reshape(p109,1089,1); p110 = textread('pattern110.txt'); p110 = reshape(p110,1089,1); p111 = textread('pattern111.txt'); p111 = reshape(p111,1089,1); p112 = textread('pattern112.txt'); p112 = reshape(p112,1089,1); p113 = textread('pattern113.txt'); p113 = reshape(p113,1089,1); p114 = textread('pattern114.txt'); p114 = reshape(p114,1089,1); p115 = textread('pattern115.txt'); p115 = reshape(p115,1089,1); p116 = textread('pattern116.txt'); p116 = reshape(p116,1089,1); p117 = textread('pattern117.txt'); p117 = reshape(p117,1089,1); p118 = textread('pattern118.txt'); p118 = reshape(p118,1089,1); p119 = textread('pattern119.txt'); p119 = reshape(p119,1089,1); p120 = textread('pattern120.txt'); p120 = reshape(p120,1089,1); p121 = textread('pattern121.txt'); p121 = reshape(p121,1089,1); p122 = textread('pattern122.txt'); p122 = reshape(p122,1089,1); p123 = textread('pattern123.txt'); p123 = reshape(p123,1089,1); p124 = textread('pattern124.txt'); p124 = reshape(p124,1089,1); p125 = textread('pattern125.txt'); p125 = reshape(p125,1089,1); p126 = textread('pattern126.txt'); p126 = reshape(p126,1089,1); p127 = textread('pattern127.txt'); p127 = reshape(p127,1089,1); p128 = textread('pattern128.txt'); p128 = reshape(p128,1089,1); p = [p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 p23 p24 p25 p26 p27 p28 p29 p30 p31 p32 p33 p34 p35 p36 p37 p38 p39 p40 p41 p42 p43 p44 p45 p46 p47 p48 p49 p50 p51 p52 p53 p54 p55 p56 p57 p58 p59 p60 p61 p62 p63 p64 p65 p66 p67 p68 p69 p70 p71 p72 p73 p74 p75 p76 p77 p78 p79 p80 p81 p82 p83 p84 p85 p86 p87 p88 p89 p90 p91 p92 p93 p94 p95 p96 p97 p98 p99 p100 p101 p102 p103 p104 p105 p106 p107 p108 p109 p110 p111 p112 p113 p114 p115 p116 p117 p118 p119 p120 p121 p122 p123 p124 p125 p126 p127 p128];

t1 = [1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 00000001000000000000000100000000000000010000 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]; t2 = [0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 00000000100000000000000010000000000000001000 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0]; t3 = [0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 00000000010000000000000001000000000000000100 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0]; t4 = [0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 00000000001000000000000000100000000000000010 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0]; t5 = [0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 00000000000100000000000000010000000000000001 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0]; t6 = [0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 00000000000010000000000000001000000000000000 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0]; t7 = [0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 00000000000001000000000000000100000000000000 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0]; t8 = [0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 00000000000000100000000000000010000000000000 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0]; t9 = [0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 00000000000000010000000000000001000000000000 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0]; t10 = [0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10000000000000001000000000000000100000000000 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0]; t11 = [0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 01000000000000000100000000000000010000000000 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0]; t12 = [0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 00100000000000000010000000000000001000000000 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0]; t13 = [0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 00010000000000000001000000000000000100000000 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0]; t14 = [0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 00001000000000000000100000000000000010000000 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0]; t15 = [0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 00000100000000000000010000000000000001000000 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0]; t16 = [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 00000010000000000000001000000000000000100000 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1]; net1 = newp(minmax(p), 1)

net1 = train(net1,p,t1) bobot1 = net1.IW{1,1} dlmwrite('bobot1.txt',bobot1''); bias1 = net1.b{1} dlmwrite('bias1.txt',bias1''); net2 = newp(minmax(p), 1) net2 = train(net2,p,t2) bobot2 = net2.IW{1,1} dlmwrite('bobot2.txt',bobot2''); bias2 = net2.b{1} dlmwrite('bias2.txt',bias2''); net3 = newp(minmax(p), 1) net3 = train(net3,p,t3) bobot3 = net3.IW{1,1} dlmwrite('bobot3.txt',bobot3''); bias3 = net3.b{1} dlmwrite('bias3.txt',bias3''); net4 = newp(minmax(p), 1) net4 = train(net4,p,t4) bobot4 = net4.IW{1,1} dlmwrite('bobot4.txt',bobot4''); bias4 = net4.b{1} dlmwrite('bias4.txt',bias4''); net5 = newp(minmax(p), 1) net5 = train(net5,p,t5) bobot5 = net5.IW{1,1} dlmwrite('bobot5.txt',bobot5''); bias5 = net5.b{1} dlmwrite('bias5.txt',bias5''); net6 = newp(minmax(p), 1) net6 = train(net6,p,t6) bobot6 = net6.IW{1,1} dlmwrite('bobot6.txt',bobot6''); bias6 = net6.b{1} dlmwrite('bias6.txt',bias6''); net7 = newp(minmax(p), 1) net7 = train(net7,p,t7) bobot7 = net7.IW(1,1) dlmwrite('bobot7.txt',bobot7''); bias7 = net7.b{1} dlmwrite('bias7.txt',bias7''); net8 = newp(minmax(p), 1) net8 = train(net8,p,t8) bobot8 = net8.IW{1,1} dlmwrite('bobot8.txt',bobot8''); bias8 = net8.b{1} dlmwrite('bias8.txt',bias8''); net9 = newp(minmax(p), 1) net9 = train(net9,p,t9)

bobot9 = net9.IW{1,1} dlmwrite('bobot9.txt',bobot9''); bias9 = net9.b{1} dlmwrite('bias9.txt',bias9''); net10 = newp(minmax(p), 1) net10 = train(net10,p,t10) bobot10 = net10.IW{1,1} dlmwrite('bobot10.txt',bobot10''); bias10 = net10.b{1} dlmwrite('bias10.txt',bias10''); net11 = newp(minmax(p), 1) net11 = train(net11,p,t11) bobot11 = net11.IW{1,1} dlmwrite('bobot11.txt',bobot11''); bias11 = net11.b{1} dlmwrite('bias11.txt',bias11''); net12 = newp(minmax(p), 1) net12 = train(net11,p,t12) bobot12 = net12.IW{1,1} dlmwrite('bobot12.txt',bobot12''); bias12 = net12.b{1} dlmwrite('bias12.txt',bias12''); net13 = newp(minmax(p), 1) net13 = train(net13,p,t13) bobot13 = net13.IW{1,1} dlmwrite('bobot13.txt',bobot13''); bias13 = net13.b{1} dlmwrite('bias13.txt',bias13''); net14 = newp(minmax(p), 1) net14 = train(net14,p,t14) bobot14 = net14.IW{1,1} dlmwrite('bobot14.txt',bobot14''); bias14 = net14.b{1} dlmwrite('bias14.txt',bias14''); net15 = newp(minmax(p), 1) net15 = train(net15,p,t15) bobot15 = net15.IW{1,1} dlmwrite('bobot15.txt',bobot15''); bias15 = net15.b{1} dlmwrite('bias15.txt',bias15''); net16 = newp(minmax(p), 1) net16 = train(net16,p,t16) bobot16 = net16.IW{1,1} dlmwrite('bobot16.txt',bobot16''); bias16 = net16.b{1} dlmwrite('bias16.txt',bias16'');

5. File Uji Data Latihan p1 = textread('pattern1.txt'); p2 = textread('pattern2.txt'); p3 = textread('pattern3.txt'); p4 = textread('pattern4.txt'); p5 = textread('pattern5.txt'); p6 = textread('pattern6.txt'); p7 = textread('pattern7.txt'); p8 = textread('pattern8.txt'); p9 = textread('pattern9.txt'); p10 = textread('pattern10.txt'); p11 = textread('pattern11.txt'); p12 = textread('pattern12.txt'); p13 = textread('pattern13.txt'); p14 = textread('pattern14.txt'); p15 = textread('pattern15.txt'); p16 = textread('pattern16.txt'); p17 = textread('pattern17.txt'); p18 = textread('pattern18.txt'); p19 = textread('pattern19.txt'); p20 = textread('pattern20.txt'); p21 = textread('pattern21.txt'); p22 = textread('pattern22.txt'); p23 = textread('pattern23.txt'); p24 = textread('pattern24.txt'); p25 = textread('pattern25.txt'); p26 = textread('pattern26.txt'); p27 = textread('pattern27.txt'); p28 = textread('pattern28.txt'); p29 = textread('pattern29.txt'); p30 = textread('pattern30.txt'); p31 = textread('pattern31.txt'); p32 = textread('pattern32.txt'); p33 = textread('pattern33.txt'); p34 = textread('pattern34.txt'); p35 = textread('pattern35.txt'); p36 = textread('pattern36.txt'); p37 = textread('pattern37.txt'); p38 = textread('pattern38.txt'); p39 = textread('pattern39.txt'); p40 = textread('pattern40.txt'); p41 = textread('pattern41.txt'); p42 = textread('pattern42.txt'); p43 = textread('pattern43.txt'); p44 = textread('pattern44.txt'); p45 = textread('pattern45.txt'); p46 = textread('pattern46.txt'); p47 = textread('pattern47.txt'); p48 = textread('pattern48.txt');

p1 = reshape(p1,1089,1); p2 = reshape(p2,1089,1); p3 = reshape(p3,1089,1); p4 = reshape(p4,1089,1); p5 = reshape(p5,1089,1); p6 = reshape(p6,1089,1); p7 = reshape(p7,1089,1); p8 = reshape(p8,1089,1); p9 = reshape(p9,1089,1); p10 = reshape(p10,1089,1); p11 = reshape(p11,1089,1); p12 = reshape(p12,1089,1); p13 = reshape(p13,1089,1); p14 = reshape(p14,1089,1); p15 = reshape(p15,1089,1); p16 = reshape(p16,1089,1); p17 = reshape(p17,1089,1); p18 = reshape(p18,1089,1); p19 = reshape(p19,1089,1); p20 = reshape(p20,1089,1); p21 = reshape(p21,1089,1); p22 = reshape(p22,1089,1); p23 = reshape(p23,1089,1); p24 = reshape(p24,1089,1); p25 = reshape(p25,1089,1); p26 = reshape(p26,1089,1); p27 = reshape(p27,1089,1); p28 = reshape(p28,1089,1); p29 = reshape(p29,1089,1); p30 = reshape(p30,1089,1); p31 = reshape(p31,1089,1); p32 = reshape(p32,1089,1); p33 = reshape(p33,1089,1); p34 = reshape(p34,1089,1); p35 = reshape(p35,1089,1); p36 = reshape(p36,1089,1); p37 = reshape(p37,1089,1); p38 = reshape(p38,1089,1); p39 = reshape(p39,1089,1); p40 = reshape(p40,1089,1); p41 = reshape(p41,1089,1); p42 = reshape(p42,1089,1); p43 = reshape(p43,1089,1); p44 = reshape(p44,1089,1); p45 = reshape(p45,1089,1); p46 = reshape(p46,1089,1); p47 = reshape(p47,1089,1); p48 = reshape(p48,1089,1);

p49 p50 p51 p52 p53 p54 p55 p56 p57 p58 p59 p60 p61 p62 p63 p64 p65 p66 p67 p68 p69 p70 p71 p72 p73 p74 p75 p76 p77 p78 p79 p80 p81 p82 p83 p84 p85 p86 p87 p88 p89 p90 p91 p92 p93 p94 p95 p96 p97

= textread('pattern49.txt'); = textread('pattern50.txt'); = textread('pattern51.txt'); = textread('pattern52.txt'); = textread('pattern53.txt'); = textread('pattern54.txt'); = textread('pattern55.txt'); = textread('pattern56.txt'); = textread('pattern57.txt'); = textread('pattern58.txt'); = textread('pattern59.txt'); = textread('pattern60.txt'); = textread('pattern61.txt'); = textread('pattern62.txt'); = textread('pattern63.txt'); = textread('pattern64.txt'); = textread('pattern65.txt'); = textread('pattern66.txt'); = textread('pattern67.txt'); = textread('pattern68.txt'); = textread('pattern69.txt'); = textread('pattern70.txt'); = textread('pattern71.txt'); = textread('pattern72.txt'); = textread('pattern73.txt'); = textread('pattern74.txt'); = textread('pattern75.txt'); = textread('pattern76.txt'); = textread('pattern77.txt'); = textread('pattern78.txt'); = textread('pattern79.txt'); = textread('pattern80.txt'); = textread('pattern81.txt'); = textread('pattern82.txt'); = textread('pattern83.txt'); = textread('pattern84.txt'); = textread('pattern85.txt'); = textread('pattern86.txt'); = textread('pattern87.txt'); = textread('pattern88.txt'); = textread('pattern89.txt'); = textread('pattern90.txt'); = textread('pattern91.txt'); = textread('pattern92.txt'); = textread('pattern93.txt'); = textread('pattern94.txt'); = textread('pattern95.txt'); = textread('pattern96.txt'); = textread('pattern97.txt');

p49 p50 p51 p52 p53 p54 p55 p56 p57 p58 p59 p60 p61 p62 p63 p64 p65 p66 p67 p68 p69 p70 p71 p72 p73 p74 p75 p76 p77 p78 p79 p80 p81 p82 p83 p84 p85 p86 p87 p88 p89 p90 p91 p92 p93 p94 p95 p96 p97

= reshape(p49,1089,1); = reshape(p50,1089,1); = reshape(p51,1089,1); = reshape(p52,1089,1); = reshape(p53,1089,1); = reshape(p54,1089,1); = reshape(p55,1089,1); = reshape(p56,1089,1); = reshape(p57,1089,1); = reshape(p58,1089,1); = reshape(p59,1089,1); = reshape(p60,1089,1); = reshape(p61,1089,1); = reshape(p62,1089,1); = reshape(p63,1089,1); = reshape(p64,1089,1); = reshape(p65,1089,1); = reshape(p66,1089,1); = reshape(p67,1089,1); = reshape(p68,1089,1); = reshape(p69,1089,1); = reshape(p70,1089,1); = reshape(p71,1089,1); = reshape(p72,1089,1); = reshape(p73,1089,1); = reshape(p74,1089,1); = reshape(p75,1089,1); = reshape(p76,1089,1); = reshape(p77,1089,1); = reshape(p78,1089,1); = reshape(p79,1089,1); = reshape(p80,1089,1); = reshape(p81,1089,1); = reshape(p82,1089,1); = reshape(p83,1089,1); = reshape(p84,1089,1); = reshape(p85,1089,1); = reshape(p86,1089,1); = reshape(p87,1089,1); = reshape(p88,1089,1); = reshape(p89,1089,1); = reshape(p90,1089,1); = reshape(p91,1089,1); = reshape(p92,1089,1); = reshape(p93,1089,1); = reshape(p94,1089,1); = reshape(p95,1089,1); = reshape(p96,1089,1); = reshape(p97,1089,1);

p98 = textread('pattern98.txt'); p98 = reshape(p98,1089,1); p99 = textread('pattern99.txt'); p99 = reshape(p99,1089,1); p100 = textread('pattern100.txt'); p100 = reshape(p100,1089,1); p101 = textread('pattern101.txt'); p101 = reshape(p101,1089,1); p102 = textread('pattern102.txt'); p102 = reshape(p102,1089,1); p103 = textread('pattern103.txt'); p103 = reshape(p103,1089,1); p104 = textread('pattern104.txt'); p104 = reshape(p104,1089,1); p105 = textread('pattern105.txt'); p105 = reshape(p105,1089,1); p106 = textread('pattern106.txt'); p106 = reshape(p106,1089,1); p107 = textread('pattern107.txt'); p107 = reshape(p107,1089,1); p108 = textread('pattern108.txt'); p108 = reshape(p108,1089,1); p109 = textread('pattern109.txt'); p109 = reshape(p109,1089,1); p110 = textread('pattern110.txt'); p110 = reshape(p110,1089,1); p111 = textread('pattern111.txt'); p111 = reshape(p111,1089,1); p112 = textread('pattern112.txt'); p112 = reshape(p112,1089,1); p113 = textread('pattern113.txt'); p113 = reshape(p113,1089,1); p114 = textread('pattern114.txt'); p114 = reshape(p114,1089,1); p115 = textread('pattern115.txt'); p115 = reshape(p115,1089,1); p116 = textread('pattern116.txt'); p116 = reshape(p116,1089,1); p117 = textread('pattern117.txt'); p117 = reshape(p117,1089,1); p118 = textread('pattern118.txt'); p118 = reshape(p118,1089,1); p119 = textread('pattern119.txt'); p119 = reshape(p119,1089,1); p120 = textread('pattern120.txt'); p120 = reshape(p120,1089,1); p121 = textread('pattern121.txt'); p121 = reshape(p121,1089,1); p122 = textread('pattern122.txt'); p122 = reshape(p122,1089,1); p123 = textread('pattern123.txt'); p123 = reshape(p123,1089,1); p124 = textread('pattern124.txt'); p124 = reshape(p124,1089,1); p125 = textread('pattern125.txt'); p125 = reshape(p125,1089,1); p126 = textread('pattern126.txt'); p126 = reshape(p126,1089,1); p127 = textread('pattern127.txt'); p127 = reshape(p127,1089,1); p128 = textread('pattern128.txt'); p128 = reshape(p128,1089,1); p = [p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 p23 p24 p25 p26 p27 p28 p29 p30 p31 p32 p33 p34 p35 p36 p37 p38 p39 p40 p41 p42 p43 p44 p45 p46 p47 p48 p49 p50 p51 p52 p53 p54 p55 p56 p57 p58 p59 p60 p61 p62 p63 p64 p65 p66 p67 p68 p69 p70 p71 p72 p73 p74 p75 p76 p77 p78 p79 p80 p81 p82 p83 p84 p85 p86 p87 p88 p89 p90 p91 p92 p93 p94 p95 p96 p97 p98 p99 p100 p101 p102 p103 p104 p105 p106 p107 p108 p109 p110 p111 p112 p113 p114 p115 p116 p117 p118 p119 p120 p121 p122 p123 p124 p125 p126 p127 p128]; net1 = newp(minmax(p),1); net1.IW{1,1} = textread('bobot1.txt'); net1.b{1} = textread('bias1.txt'); net2 = newp(minmax(p),1); net2.IW{1,1} = textread('bobot2.txt'); net2.b{1} = textread('bias2.txt'); net3 = newp(minmax(p),1); net3.IW{1,1} = textread('bobot3.txt'); net3.b{1} = textread('bias3.txt'); net4 = newp(minmax(p),1);

net4.IW{1,1} = textread('bobot4.txt'); net4.b{1} = textread('bias4.txt'); net5 = newp(minmax(p),1); net5.IW{1,1} = textread('bobot5.txt'); net5.b{1} = textread('bias5.txt'); net6 = newp(minmax(p),1); net6.IW{1,1} = textread('bobot6.txt'); net6.b{1} = textread('bias6.txt'); net7 = newp(minmax(p),1); net7.IW{1,1} = textread('bobot7.txt'); net7.b{1} = textread('bias7.txt'); net8 = newp(minmax(p),1); net8.IW{1,1} = textread('bobot8.txt'); net8.b{1} = textread('bias8.txt'); net9 = newp(minmax(p),1); net9.IW{1,1} = textread('bobot9.txt'); net9.b{1} = textread('bias9.txt'); net10 = newp(minmax(p),1); net10.IW{1,1} = textread('bobot10.txt'); net10.b{1} = textread('bias10.txt'); net11 = newp(minmax(p),1); net11.IW{1,1} = textread('bobot11.txt'); net11.b{1} = textread('bias11.txt'); net12 = newp(minmax(p),1); net12.IW{1,1} = textread('bobot12.txt'); net12.b{1} = textread('bias12.txt'); net13 = newp(minmax(p),1); net13.IW{1,1} = textread('bobot13.txt'); net13.b{1} = textread('bias13.txt'); net14 = newp(minmax(p),1); net14.IW{1,1} = textread('bobot14.txt'); net14.b{1} = textread('bias14.txt'); net15 = newp(minmax(p),1); net15.IW{1,1} = textread('bobot15.txt'); net15.b{1} = textread('bias15.txt'); net16 = newp(minmax(p),1); net16.IW{1,1} = textread('bobot16.txt'); net16.b{1} = textread('bias16.txt'); y1 = sim(net1,p) y2 = sim(net2,p) y3 = sim(net3,p) y4 = sim(net4,p) y5 = sim(net5,p) y6 = sim(net6,p) y7 = sim(net7,p) y8 = sim(net8,p) y9 = sim(net9,p) y10 = sim(net10,p) y11 = sim(net11,p)

y12 = sim(net12,p) y13 = sim(net13,p) y14 = sim(net14,p) y15 = sim(net15,p) y16 = sim(net16,p)

LAMPIRAN B GRAFIK HASIL PELATIHAN

Grafik hasil pelatihan jaringan 1

Grafik hasil pelatihan jaringan 2

Grafik hasil pelatihan jaringan 3

Grafik hasil pelatihan jaringan 4

Grafik hasil pelatihan jaringan 5

Grafik hasil pelatihan jaringan 6

Grafik hasil pelatihan jaringan 7

Grafik hasil pelatihan jaringan 8

Grafik hasil pelatihan jaringan 9

Grafik hasil pelatihan jaringan 10

Grafik hasil pelatihan jaringan 11

Grafik hasil pelatihan jaringan 12

Grafik hasil pelatihan jaringan 13

Grafik hasil pelatihan jaringan 14

Grafik hasil pelatihan jaringan 15

Grafik hasil pelatihan jaringan 16

LAMPIRAN C HASIL PENGUJIAN

1. Hasil Pengujian QR Code yang sudah dilatih Pattern

1

2

3

4

5

6

7

8

Gambar

Target

Output

10000000

Universitas Gajah Mada

00000000

Yogya

01000000

Universitas Indonesia

00000000

Jakarta

00100000

Universitas Sumatera

00000000

Utara

00010000

Universitas Airlangga

00000000

Surabaya

00001000

Universitas Hasanuddin

00000000

Makassar

00000100

Universitas Andalas

00000000

Padang

00000010

Universitas Padjajaran

00000000

Bandung

00000001

Universitas Diponegoro

00000000

Semarang

Hasil

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

9

10

11

12

13

14

15

16

17

18

19

00000000

Universitas Sriwijaya

10000000

Palembang

00000000

Universitas Lambung

01000000

Mangkurat

00000000

Universitas Syiah Kuala

00100000

Banda

00000000

Universitas Sam

00010000

Ratulangi

00000000

Universitas Udayana

00001000

Denpasar

00000000

Universitas Nusa

00000100

Cendana

00000000

Universitas Mulawarman

00000010

Samarinda

00000000

Universitas Mataram,

00000001

Mataram

10000000

Universitas Gajah Mada

00000000

Yogya

01000000

Universitas Indonesia

00000000

Jakarta

00100000

Universitas Sumatera

00000000

Utara

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

20

21

22

23

24

25

26

27

28

29

30

00010000

Universitas Airlangga

00000000

Surabaya

00001000

Universitas Hasanuddin

00000000

Makassar

00000100

Universitas Andalas

00000000

Padang

00000010

Universitas Padjajaran

00000000

Bandung

00000001

Universitas Diponegoro

00000000

Semarang

00000000

Universitas Sriwijaya

10000000

Palembang

00000000

Universitas Lambung

01000000

Mangkurat

00000000

Universitas Syiah Kuala

00100000

Banda

00000000

Universitas Sam

00010000

Ratulangi

00000000

Universitas Udayana

00001000

Denpasar

00000000

Universitas Nusa

00000100

Cendana

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

31

32

33

34

35

36

37

38

39

40

41

00000000

Universitas Mulawarman

00000010

Samarinda

00000000

Universitas Mataram,

00000001

Mataram

10000000

Universitas Gajah Mada

00000000

Yogya

01000000

Universitas Indonesia

00000000

Jakarta

00100000

Universitas Sumatera

00000000

Utara

00010000

Universitas Airlangga

00000000

Surabaya

00001000

Universitas Hasanuddin

00000000

Makassar

00000100

Universitas Andalas

00000000

Padang

00000010

Universitas Padjajaran

00000000

Bandung

00000001

Universitas Diponegoro

00000000

Semarang

00000000

Universitas Sriwijaya

10000000

Palembang

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

42

43

44

45

46

47

48

49

50

51

52

00000000

Universitas Lambung

01000000

Mangkurat

00000000

Universitas Syiah Kuala

00100000

Banda

00000000

Universitas Sam

00010000

Ratulangi

00000000

Universitas Udayana

00001000

Denpasar

00000000

Universitas Nusa

00000100

Cendana

00000000

Universitas Mulawarman

00000010

Samarinda

00000000

Universitas Mataram,

00000001

Mataram

10000000

Universitas Gajah Mada

00000000

Yogya

01000000

Universitas Indonesia

00000000

Jakarta

00100000

Universitas Sumatera

00000000

Utara

00010000

Universitas Airlangga

00000000

Surabaya

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

53

54

55

56

57

58

59

60

61

62

63

00001000

Universitas Hasanuddin

00000000

Makassar

00000100

Universitas Andalas

00000000

Padang

00000010

Universitas Padjajaran

00000000

Bandung

00000001

Universitas Diponegoro

00000000

Semarang

00000000

Universitas Sriwijaya

10000000

Palembang

00000000

Universitas Lambung

01000000

Mangkurat

00000000

Universitas Syiah Kuala

00100000

Banda

00000000

Universitas Sam

00010000

Ratulangi

00000000

Universitas Udayana

00001000

Denpasar

00000000

Universitas Nusa

00000100

Cendana

00000000

Universitas Mulawarman

00000010

Samarinda

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

64

65

66

67

68

69

70

71

72

73

74

00000000

Universitas Mataram,

00000001

Mataram

10000000

Universitas Gajah Mada

00000000

Yogya

01000000

Universitas Indonesia

00000000

Jakarta

00100000

Universitas Sumatera

00000000

Utara

00010000

Universitas Airlangga

00000000

Surabaya

00001000

Universitas Hasanuddin

00000000

Makassar

00000100

Universitas Andalas

00000000

Padang

00000010

Universitas Padjajaran

00000000

Bandung

00000001

Universitas Diponegoro

00000000

Semarang

00000000

Universitas Sriwijaya

10000000

Palembang

00000000

Universitas Lambung

01000000

Mangkurat

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

75

76

77

78

79

80

81

82

83

84

85

00000000

Universitas Syiah Kuala

00100000

Banda

00000000

Universitas Sam

00010000

Ratulangi

00000000

Universitas Udayana

00001000

Denpasar

00000000

Universitas Nusa

00000100

Cendana

00000000

Universitas Mulawarman

00000010

Samarinda

00000000

Universitas Mataram,

00000001

Mataram

10000000

Universitas Gajah Mada

00000000

Yogya

01000000

Universitas Indonesia

00000000

Jakarta

00100000

Universitas Sumatera

00000000

Utara

00010000

Universitas Airlangga

00000000

Surabaya

00001000

Universitas Hasanuddin

00000000

Makassar

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

86

87

88

89

90

91

92

93

94

95

96

00000100

Universitas Andalas

00000000

Padang

00000010

Universitas Padjajaran

00000000

Bandung

00000001

Universitas Diponegoro

00000000

Semarang

00000000

Universitas Sriwijaya

10000000

Palembang

00000000

Universitas Lambung

01000000

Mangkurat

00000000

Universitas Syiah Kuala

00100000

Banda

00000000

Universitas Sam

00010000

Ratulangi

00000000

Universitas Udayana

00001000

Denpasar

00000000

Universitas Nusa

00000100

Cendana

00000000

Universitas Mulawarman

00000010

Samarinda

00000000

Universitas Mataram,

00000001

Mataram

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

97

98

99

100

101

102

103

104

105

106

107

10000000

Universitas Gajah Mada

00000000

Yogya

01000000

Universitas Indonesia

00000000

Jakarta

00100000

Universitas Sumatera

00000000

Utara

00010000

Universitas Airlangga

00000000

Surabaya

00001000

Universitas Hasanuddin

00000000

Makassar

00000100

Universitas Andalas

00000000

Padang

00000010

Universitas Padjajaran

00000000

Bandung

00000001

Universitas Diponegoro

00000000

Semarang

00000000

Universitas Sriwijaya

10000000

Palembang

00000000

Universitas Lambung

01000000

Mangkurat

00000000

Universitas Syiah Kuala

00100000

Banda

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

108

109

110

111

112

113

114

115

116

117

118

00000000

Universitas Sam

00010000

Ratulangi

00000000

Universitas Udayana

00001000

Denpasar

00000000

Universitas Nusa

00000100

Cendana

00000000

Universitas Mulawarman

00000010

Samarinda

00000000

Universitas Mataram,

00000001

Mataram

10000000

Universitas Gajah Mada

00000000

Yogya

01000000

Universitas Indonesia

00000000

Jakarta

00100000

Universitas Sumatera

00000000

Utara

00010000

Universitas Airlangga

00000000

Surabaya

00001000

Universitas Hasanuddin

00000000

Makassar

00000100

Universitas Andalas

00000000

Padang

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

119

120

121

122

123

124

125

126

127

128

00000010

Universitas Padjajaran

00000000

Bandung

00000001

Universitas Diponegoro

00000000

Semarang

00000000

Universitas Sriwijaya

10000000

Palembang

00000000

Universitas Lambung

01000000

Mangkurat

00000000

Universitas Syiah Kuala

00100000

Banda

00000000

Universitas Sam

00010000

Ratulangi

00000000

Universitas Udayana

00001000

Denpasar

00000000

Universitas Nusa

00000100

Cendana

00000000

Universitas Mulawarman

00000010

Samarinda

00000000

Universitas Mataram,

00000001

Mataram

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

2. Hasil Pengujian QR Code yang belum dilatih Pattern

129

130

131

132

133

134

135

136

137

138

QR Code

Target

Output

Hasil

Universitas Gajah Mada Yogya

BENAR

Universitas Gajah Mada Yogya

BENAR

Universitas Gajah Mada Yogya

BENAR

Universitas Gajah Mada Yogya

BENAR

00000000

Universitas Gajah Mada Yogya

BENAR

01000000

Universitas Indonesia

00000000

Jakarta

10000000 00000000 10000000 00000000 10000000 00000000 10000000 00000000 10000000

01000000

BENAR

Universitas Indonesia Jakarta

BENAR

Universitas Indonesia Jakarta

BENAR

00000000

Universitas Indonesia Jakarta

BENAR

01000000 00000000

Universitas Indonesia Jakarta

BENAR

00000000 01000000 00000000 01000000

139

140

141

142

143

144

145

146

147

148

149

00010000

Universitas Airlangga

00000000

Surabaya

00010000

Universitas Airlangga

00000000

Surabaya

00010000

Universitas Airlangga

00000000

Surabaya

00010000

Universitas Airlangga

00000000

Surabaya

00010000

Universitas Airlangga

00000000

Surabaya

00001000

Universitas Hasanuddin

00000000

Makassar

00001000

Universitas Hasanuddin

00000000

Makassar

00001000

Universitas Hasanuddin

00000000

Makassar

00001000

Universitas Hasanuddin

00000000

Makassar

00001000

Universitas Hasanuddin

00000000

Makassar

00000100 00000000

Universitas Andalas Padang

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

150

151

152

153

154

155

156

157

158

159

160

00000100 00000000 00000100 00000000 00000100 00000000 00000100 00000000

Universitas Andalas Padang

BENAR

Universitas Andalas Padang

BENAR

Universitas Andalas Padang

BENAR

Universitas Andalas Padang

BENAR

00000010

Universitas Padjajaran

00000000

Bandung

00000010

Universitas Padjajaran

00000000

Bandung

00000010

Universitas Padjajaran

00000000

Bandung

00000010

Universitas Padjajaran

00000000

Bandung

00000010

Universitas Padjajaran

00000000

Bandung

00000001

Universitas Diponegoro

00000000

Semarang

00000001

Universitas Diponegoro

00000000

Semarang

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

161

162

163

164

165

166

167

168

169

170

171

00000001

Universitas Diponegoro

00000000

Semarang

00000001

Universitas Diponegoro

00000000

Semarang

00000001

Universitas Diponegoro

00000000

Semarang

00000000

Universitas Sriwijaya

10000000

Palembang

00000000

Universitas Sriwijaya

10000000

Palembang

00000000

Universitas Sriwijaya

10000000

Palembang

00000000

Universitas Sriwijaya

10000000

Palembang

00000000

Universitas Sriwijaya

10000000

Palembang

00000000

Universitas Lambung

01000000

Mangkurat

00000000

Universitas Lambung

01000000

Mangkurat

00000000

Universitas Lambung

01000000

Mangkurat

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

172

173

174

175

176

177

178

179

180

181

182

00000000

Universitas Lambung

01000000

Mangkurat

00000000

Universitas Lambung

01000000

Mangkurat

00000000

Universitas Syiah Kuala

00100000

Banda

00000000

Universitas Syiah Kuala

00100000

Banda

00000000

Universitas Syiah Kuala

00100000

Banda

00000000

Universitas Syiah Kuala

00100000

Banda

00000000

Universitas Syiah Kuala

00100000

Banda

00000000 00010000 00000000 00010000 00000000 00010000 00000000 00010000

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

Universitas Sam Ratulangi

BENAR

Universitas Sam Ratulangi

BENAR

Universitas Sam Ratulangi

BENAR

Universitas Sam Ratulangi

BENAR

183

184

185

186

187

188

189

190

191

192

193

00000000 00010000

Universitas Sam Ratulangi

00000000

Universitas Udayana

00001000

Denpasar

00000000

Universitas Udayana

00001000

Denpasar

00000000

Universitas Udayana

00001000

Denpasar

00000000

Universitas Udayana

00001000

Denpasar

00000000

Universitas Udayana

00001000

Denpasar

00000000 00000100 00000000 00000100 00000000 00000100 00000000 00000100 00000000 00000100

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

Universitas Nusa Cendana

BENAR

Universitas Nusa Cendana

BENAR

Universitas Nusa Cendana

BENAR

Universitas Nusa Cendana

BENAR

Universitas Nusa Cendana

BENAR

194

195

196

197

198

199

200

201

202

203

204

00000000

Universitas Mulawarman

00000010

Samarinda

00000000

Universitas Mulawarman

00000010

Samarinda

00000000

Universitas Mulawarman

00000010

Samarinda

00000000

Universitas Mulawarman

00000010

Samarinda

00000000

Universitas Mulawarman

00000010

Samarinda

00000000

Universitas Mataram,

00000001

Mataram

00000000

Universitas Mataram,

00000001

Mataram

00000000

Universitas Mataram,

00000001

Mataram

00000000

Universitas Mataram,

00000001

Mataram

00000000

Universitas Mataram,

00000001

Mataram

00100000 00000000

Universitas Sumatera Utara

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

BENAR

205

206

207

208

00100000 00000000 00100000 00000000 00100000 00000000 00100000 00000000

Universitas Sumatera Utara

BENAR

Universitas Sumatera Utara

BENAR

Universitas Sumatera Utara

BENAR

Universitas Sumatera Utara

BENAR