• Tidak ada hasil yang ditemukan

Penerapan Jaringan Syaraf Tiruan dalam Mengidentifikasi Gejala pada Penyakit Hipertensi menggunakan Metode Backpropagation.

N/A
N/A
Protected

Academic year: 2017

Membagikan "Penerapan Jaringan Syaraf Tiruan dalam Mengidentifikasi Gejala pada Penyakit Hipertensi menggunakan Metode Backpropagation."

Copied!
34
0
0

Teks penuh

(1)

LISTING PROGRAM

Kode Program untuk Tampilan Home

function varargout = Home(varargin) % HOME M-file for Home.fig

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

gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @Home_OpeningFcn, ... 'gui_OutputFcn', @Home_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 Home is made visible.

function Home_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 Home (see VARARGIN)

% Choose default command line output for Home handles.output = hObject;

% Update handles structure guidata(hObject, handles);

hback = axes('units','normalized','position',[0 0 1 1]); uistack(hback,'bottom');

% menampilkan background

[back map]=imread('satu.png'); image(back)

colormap(map)

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

% --- Executes on button press in pushbutton7.

(2)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA) Train

delete(Home)

% --- Executes on button press in pushbutton8.

function Close_Callback(hObject, eventdata, handles) % hObject handle to pushbutton8 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA) delete(Home)

% --- Executes on button press in pushbutton9.

function About_Callback(hObject, eventdata, handles) % hObject handle to pushbutton9 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA) delete(Home)

About

Kode Program untuk Tampilan About

function varargout = About(varargin) % ABOUT M-file for About.fig

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

gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @About_OpeningFcn, ... 'gui_OutputFcn', @About_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 About is made visible.

function About_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

(3)

% varargin command line arguments to About (see VARARGIN)

axes(handles.foto);

image(imread('gambar.png')); axis('off');

axes(handles.axes3);

image(imread('tikaa.jpg')); axis('off');

% Choose default command line output for About handles.output = hObject;

% Update handles structure guidata(hObject, handles);

hback = axes('units','normalized','position',[0 0 1 1]); uistack(hback,'bottom');

% menampilkan background [back map]=imread('dua.png'); image(back)

colormap(map)

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

% --- Outputs from this function are returned to the command line. function varargout = About_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;

% ---

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA) delete(About)

Home

% --- Executes on button press in pushbutton8.

function Close_Callback(hObject, eventdata, handles) % hObject handle to pushbutton8 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA) delete(About)

% --- Executes during object creation, after setting all properties.

(4)

% hObject handle to foto (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles empty - handles not created until after all CreateFcns called

% Hint: place code in OpeningFcn to populate foto

Kode Program untuk Tampilan Train

function varargout = Train(varargin) gui_Singleton = 1;

gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @Train_OpeningFcn, ... 'gui_OutputFcn', @Train_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

function Train_OpeningFcn(hObject, eventdata, handles, varargin) handles.output = hObject;

guidata(hObject, handles);

hback = axes('units','normalized','position',[0 0 1 1]); uistack(hback,'bottom');

% menampilkan background

[back map]=imread('tiga.png'); image(back)

colormap(map)

varargout{1} = handles.output;

% --- Executes on button press in pushbutton1.

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

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

load data_latih.mat;

epoh=str2num(get(handles.edit1,'String')); galat=str2num(get(handles.edit2,'String')); alpha=str2num(get(handles.edit3,'String')); nhidden=str2num(get(handles.edit4,'String'));

(5)

% --- 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) Trial

delete(Train)

% --- 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) menu_utamaa

close(Train)

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.

if ispc && 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)

(6)

% --- 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.

if ispc && 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.

if ispc && 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 % str2double(get(hObject,'String')) returns contents of edit4 as a double

(7)

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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

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

Kode Program untuk Tampilan Trial

function varargout = Trial(varargin) % TRIAL M-file for Trial.fig

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

gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @Trial_OpeningFcn, ... 'gui_OutputFcn', @Trial_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 Trial is made visible.

function Trial_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 Trial (see VARARGIN)

axes(handles.axes2);

image(imread('gambar.png')); axis('off');

axes(handles.axes6);

image(imread('gambar.png')); axis('off');

(8)

% Update handles structure guidata(hObject, handles); % menampilkan background

hback = axes('units','normalized','position',[0 0 1 1]); uistack(hback,'bottom');

% menampilkan background

[back map]=imread('gambar.png'); image(back)

colormap(map)

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

% --- Outputs from this function are returned to the command line. function varargout = Trial_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 selection change in popupmenu2.

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

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu2 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu2

% --- Executes during object creation, after setting all properties.

function popupmenu2_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu2 (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

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

% --- Executes on selection change in popupmenu10.

(9)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu10 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu10

% --- Executes during object creation, after setting all properties.

function popupmenu10_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu10 (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

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

% --- Executes on selection change in popupmenu9.

function popupmenu9_Callback(hObject, eventdata, handles) % hObject handle to popupmenu9 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu9 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu9

% --- Executes during object creation, after setting all properties.

function popupmenu9_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu9 (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

(10)

% --- Executes on selection change in popupmenu8.

function popupmenu8_Callback(hObject, eventdata, handles) % hObject handle to popupmenu8 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu8 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu8

% --- Executes during object creation, after setting all properties.

function popupmenu8_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu8 (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

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

% --- Executes on selection change in popupmenu7.

function popupmenu7_Callback(hObject, eventdata, handles) % hObject handle to popupmenu7 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu7 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu7

% --- Executes during object creation, after setting all properties.

function popupmenu7_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu7 (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

(11)

end

% --- Executes on selection change in popupmenu6.

function popupmenu6_Callback(hObject, eventdata, handles) % hObject handle to popupmenu6 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu6 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu6

% --- Executes during object creation, after setting all properties.

function popupmenu6_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu6 (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

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

% --- Executes on selection change in popupmenu5.

function popupmenu5_Callback(hObject, eventdata, handles) % hObject handle to popupmenu5 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu5 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu5

% --- Executes during object creation, after setting all properties.

function popupmenu5_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu5 (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.

(12)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

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

% --- Executes on selection change in popupmenu4.

function popupmenu4_Callback(hObject, eventdata, handles) % hObject handle to popupmenu4 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu4 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu4

% --- Executes during object creation, after setting all properties.

function popupmenu4_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu4 (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

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

% --- Executes on selection change in popupmenu3.

function popupmenu3_Callback(hObject, eventdata, handles) % hObject handle to popupmenu3 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu3 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu3

% --- Executes during object creation, after setting all properties.

function popupmenu3_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu3 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

(13)

% Hint: popupmenu 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

% --- Executes on selection change in popupmenu11.

function popupmenu11_Callback(hObject, eventdata, handles) % hObject handle to popupmenu11 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu11 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu11

% --- Executes during object creation, after setting all properties.

function popupmenu11_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu11 (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

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

% --- Executes on selection change in popupmenu1.

function popupmenu1_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 = get(hObject,'String') returns popupmenu1 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu1

% --- Executes during object creation, after setting all properties.

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

(14)

% handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu 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

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 on button press in pushbutton1.

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

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% --- Executes on selection change in popupmenu.

function popupmenu_Callback(hObject, eventdata, handles) % hObject handle to popupmenu (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu

% --- Executes during object creation, after setting all properties.

function popupmenu_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

(15)

% --- Executes on selection change in popupmenu14.

function popupmenu14_Callback(hObject, eventdata, handles) % hObject handle to popupmenu14 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA) v=get(handles.popupmenu14,'Value');

switch v case 1

set(handles.tengkuk,'string','0'); case 2

set(handles.tengkuk,'string','1'); end

% Hints: contents = get(hObject,'String') returns popupmenu14 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu14

% --- Executes during object creation, after setting all properties.

function popupmenu14_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu14 (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

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

% --- Executes on selection change in popupmenu15.

function popupmenu15_Callback(hObject, eventdata, handles) % hObject handle to popupmenu15 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA) v=get(handles.popupmenu15,'Value');

switch v case 1

set(handles.marah,'string','0'); case 2

set(handles.marah,'string','1'); end

% Hints: contents = get(hObject,'String') returns popupmenu15 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu15

% --- Executes during object creation, after setting all properties.

(16)

% hObject handle to popupmenu15 (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

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

% --- Executes on selection change in popupmenu16.

function popupmenu16_Callback(hObject, eventdata, handles) % hObject handle to popupmenu16 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA) v=get(handles.popupmenu16,'Value');

switch v case 1

set(handles.konsen,'string','0'); case 2

set(handles.konsen,'string','1'); end

% Hints: contents = get(hObject,'String') returns popupmenu16 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu16

% --- Executes during object creation, after setting all properties.

function popupmenu16_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu16 (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

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

% --- Executes on selection change in popupmenu17.

function popupmenu17_Callback(hObject, eventdata, handles) % hObject handle to popupmenu17 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

(17)

switch v case 1

set(handles.mimisan,'string','0'); case 2

set(handles.mimisan,'string','0.5'); case 3

set(handles.mimisan,'string','1'); end

% Hints: contents = get(hObject,'String') returns popupmenu17 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu17

% --- Executes during object creation, after setting all properties.

function popupmenu17_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu17 (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

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

% --- Executes on selection change in popupmenu18.

function popupmenu18_Callback(hObject, eventdata, handles) % hObject handle to popupmenu18 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA) v=get(handles.popupmenu18,'Value');

switch v case 1

set(handles.mual,'string','0'); case 2

set(handles.mual,'string','0.5'); case 3

set(handles.mual,'string','1'); end

% Hints: contents = get(hObject,'String') returns popupmenu18 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu18

% --- Executes during object creation, after setting all properties.

function popupmenu18_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu18 (see GCBO)

(18)

% handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu 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

% --- Executes on selection change in popupmenu19.

function popupmenu19_Callback(hObject, eventdata, handles) % hObject handle to popupmenu19 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA) v=get(handles.popupmenu19,'Value');

switch v case 1

set(handles.pandangan,'string','0'); case 2

set(handles.pandangan,'string','1'); end

% Hints: contents = get(hObject,'String') returns popupmenu19 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu19

% --- Executes during object creation, after setting all properties.

function popupmenu19_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu19 (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

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

% --- Executes on selection change in popupmenu20.

function popupmenu20_Callback(hObject, eventdata, handles) % hObject handle to popupmenu20 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA) v=get(handles.popupmenu20,'Value');

switch v case 1

(19)

case 2

set(handles.keringat,'string','0.5'); case 3

set(handles.keringat,'string','1'); end

% Hints: contents = get(hObject,'String') returns popupmenu20 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu20

% --- Executes during object creation, after setting all properties.

function popupmenu20_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu20 (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

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

% --- Executes on selection change in popupmenu21.

function popupmenu21_Callback(hObject, eventdata, handles) % hObject handle to popupmenu21 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA) v=get(handles.popupmenu21,'Value');

switch v case 1

set(handles.oyong,'string','0'); case 2

set(handles.oyong,'string','0.5'); case 3

set(handles.oyong,'string','1'); end

% Hints: contents = get(hObject,'String') returns popupmenu21 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu21

% --- Executes during object creation, after setting all properties.

function popupmenu21_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu21 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

(20)

% Hint: popupmenu 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

% --- Executes on selection change in popupmenu22.

function popupmenu22_Callback(hObject, eventdata, handles) % hObject handle to popupmenu22 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA) v=get(handles.popupmenu22,'Value');

switch v case 1

set(handles.jantung,'string','0'); case 2

set(handles.jantung,'string','1'); end

% Hints: contents = get(hObject,'String') returns popupmenu22 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu22

% --- Executes during object creation, after setting all properties.

function popupmenu22_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu22 (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

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

% --- Executes on selection change in popupmenu23.

function popupmenu23_Callback(hObject, eventdata, handles) % hObject handle to popupmenu23 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA) v=get(handles.popupmenu23,'Value');

switch v case 1

set(handles.gelisah,'string','0'); case 2

(21)

set(handles.gelisah,'string','1'); end

% Hints: contents = get(hObject,'String') returns popupmenu23 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu23

% --- Executes during object creation, after setting all properties.

function popupmenu23_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu23 (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

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

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

% --- Executes during object creation, after setting all properties.

function gelisah_CreateFcn(hObject, eventdata, handles) % hObject handle to gelisah (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

function oyong_Callback(hObject, eventdata, handles) % hObject handle to oyong (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

(22)

% Hints: get(hObject,'String') returns contents of oyong as text % str2double(get(hObject,'String')) returns contents of oyong as a double

% --- Executes during object creation, after setting all properties.

function oyong_CreateFcn(hObject, eventdata, handles) % hObject handle to oyong (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

function keringat_Callback(hObject, eventdata, handles) % hObject handle to keringat (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 keringat as text

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

% --- Executes during object creation, after setting all properties.

function keringat_CreateFcn(hObject, eventdata, handles) % hObject handle to keringat (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

function mual_Callback(hObject, eventdata, handles) % hObject handle to mual (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

(23)

% Hints: get(hObject,'String') returns contents of mual as text % str2double(get(hObject,'String')) returns contents of mual as a double

% --- Executes during object creation, after setting all properties.

function mual_CreateFcn(hObject, eventdata, handles) % hObject handle to mual (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

function pandangan_Callback(hObject, eventdata, handles) % hObject handle to pandangan (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 pandangan as text

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

% --- Executes during object creation, after setting all properties.

function pandangan_CreateFcn(hObject, eventdata, handles) % hObject handle to pandangan (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

function mimisan_Callback(hObject, eventdata, handles) % hObject handle to mimisan (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

(24)

% Hints: get(hObject,'String') returns contents of mimisan as text % str2double(get(hObject,'String')) returns contents of mimisan as a double

% --- Executes during object creation, after setting all properties.

function mimisan_CreateFcn(hObject, eventdata, handles) % hObject handle to mimisan (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

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

% --- Executes during object creation, after setting all properties.

function edit19_CreateFcn(hObject, eventdata, handles) % hObject handle to mimisan (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

function tengkuk_Callback(hObject, eventdata, handles) % hObject handle to tengkuk (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

(25)

% --- Executes during object creation, after setting all properties.

function tengkuk_CreateFcn(hObject, eventdata, handles) % hObject handle to tengkuk (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

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

% --- Executes during object creation, after setting all properties.

function marah_CreateFcn(hObject, eventdata, handles) % hObject handle to marah (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

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

% --- Executes during object creation, after setting all properties.

(26)

% 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

% --- 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) load bot.mat;

x1=str2num(get(handles.sesaknapas,'String')); x2=str2num(get(handles.gelisah,'String')); x3=str2num(get(handles.oyong,'String')); x4=str2num(get(handles.keringat,'String')); x5=str2num(get(handles.pandangan,'String')); x6=str2num(get(handles.mual,'String')); x7=str2num(get(handles.mimisan,'String')); x8=str2num(get(handles.konsen,'String')); x9=str2num(get(handles.marah,'String')); x10=str2num(get(handles.tengkuk,'String')); x11=str2num(get(handles.jantung,'String')); pola=[x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11];

y=sim(net,pola');

set(handles.node,'string',y(1)'); [baris,kolom]=find(y>=0.6);

[H,W]=size(y); y2=zeros(H,W); for m=1:length(y) y2(baris,kolom)=1;

if y2'==[1]

set(handles.deteksi,'string','suspect Hipertensi'); mengatasii

close(Trial) else

set(handles.deteksi,'string','Negatif Hipertensi');

end end

(27)

set(handles.marah,'String',''); set(handles.tengkuk,'String',''); set(handles.jantung,'String','');

guidata(hObject, handle);

% --- 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) menu_utamaa

close(Trial)

% --- Executes on button press in pushbutton4.

function pushbutton4_Callback(hObject, eventdata, handles) % hObject handle to pushbutton4 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA) keluaar

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

% --- Executes during object creation, after setting all properties.

function deteksi_CreateFcn(hObject, eventdata, handles) % hObject handle to deteksi (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

% --- Executes during object creation, after setting all properties.

function node_CreateFcn(hObject, eventdata, handles) % hObject handle to node (see GCBO)

(28)

% handles empty - handles not created until after all CreateFcns called

function sesaknapas_Callback(hObject, eventdata, handles) % hObject handle to sesaknapas (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 sesaknapas as text

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

% --- Executes during object creation, after setting all properties.

function sesaknapas_CreateFcn(hObject, eventdata, handles) % hObject handle to sesaknapas (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

% --- Executes on selection change in popupmenu24.

function popupmenu24_Callback(hObject, eventdata, handles) % hObject handle to popupmenu24 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA) v=get(handles.popupmenu24,'Value');

switch v case 1

set(handles.sesaknapas,'string','0'); case 2

set(handles.sesaknapas,'string','0.5'); case 3

set(handles.sesaknapas,'string','1'); end

% Hints: contents = get(hObject,'String') returns popupmenu24 contents as cell array

% contents{get(hObject,'Value')} returns selected item from popupmenu24

(29)

function popupmenu24_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu24 (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.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

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

% --- Executes during object creation, after setting all properties.

function konsen_CreateFcn(hObject, eventdata, handles) % hObject handle to konsen (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

% --- Executes during object creation, after setting all properties.

function uitable2_CreateFcn(hObject, eventdata, handles) % hObject handle to uitable2 (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles empty - handles not created until after all CreateFcns called

Kode Program untuk fungsi Backpropagation

function[net,tr]=backpropagation(epoh,galat,alpha,nhidden) clc;

% Mempersiapkan data latih dan target latih

data_latih=[1 0.5 0.5 0.5 0.5 1 1 0.5 0 0.5 0.5 0.5 0 0.5 0 0 0.5 0.5 1 0.5 1 0.5 1 1 1 0.5 0.5 1 1 1 0.5 0.5 0 0 0 0.5 0.5 0.5 0 0.5 0 0.5 1 0.5 0.5 0.5 0 0.5 0.5 0.5 0.5 0.5 0.5 0.5 1 1 1 1 1 0.5

0.5 0 0.5 0 0 0.5 0.5 1 0 0 0.5 0.5 0.5 0 0 0 0.5 0.5 0 1 0.5 0.5 0.5 0.5 0.5 1 0.5 1 1 0.5

(30)

1 0 0 1 1 0 0 0 0 1 0 0 1 0 1 0 0 0 0 1 0 1 1 1 0 1 1 0 1 1

1 0 0.5 0 0.5 1 1 1 0.5 0 1 0 0 0 0 0 0 1 1 1 0 0 0 1 0 1 0 1 1 1

0.5 0 0 0 0 1 0 0.5 0 0.5 0 0 0 0 0 0 0 0.5 0 1 0.5 0.5 1 1 0 1 0.5 1 1 0

1 1 1 0 1 1 1 0 0 1 0 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0

1 1 0 1 1 1 1 1 1 0 1 1 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1

1 0 0 0 0 1 1 1 0 0 0 0 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1

1 0 0 1 0 1 1 1 1 0 0 0 0 1 0 0 0 1 1 1 1 0 0 1 1 1 0 1 1 0];

data_target=[1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1];

% Pembuatan JST net =

newff(minmax(data_latih),[10,1],{'logsig','logsig'},'traingdx');

% Memberikan nilai untuk mempengaruhi proses pelatihan net.performFcn = 'mse';

net.trainParam.goal = 0; net.trainParam.show = 25; net.trainParam.epochs = 1000; net.trainParam.mc = 0.01; net.trainParam.lr = 0.01;

% Proses training

(31)
(32)
(33)
(34)

Referensi

Dokumen terkait

Penegakan hukum terhadap Nenek Minah harus dilepaskan dari unsur-unsur sosial serta moralitas, karena menurut kacamata Paradigma Positivisme, tujuan hukum adalah kepastian

Livelihoods Framework” (Ellis , 2000) to help define and organize indicators. Five to six indicators were developed in each category of livelihood assets. Indicators must

Karakter budi pekerti luhur seperti inilah yang seharusnya menjadi modal dasar bagi anak bangsa dalam pembangunan Nation & Character Building yang akan

Melalui analisis SWOT diperoleh hasil pada tahap input, skor kekuatan dikurangi skor kelemahan adalah 2,71 sedangkan skor peluang dikurangi skor ancaman adalah 1,06..

Berdasarkan penelitian yang dilakukan, diperoleh bahwa ketelitian rata-rata posisi horisontal dari hitung perataan secara simultan dan bertahap pada kasus jaring kuadrilateral

Penambahan sabut kelapa pada media tanam cenderung menunjukkan hasil yang lebih besar dari ketiga parameter dan frekuensi penyiraman satu kali sehari pada tanaman kelapa

Pengujian Blood Pressure dengan Pembanding Alat Ukur Tekanan Darah Raksa ... Pengujian Blood Pressure dengan Pembanding Alat Ukur Tekanan Darah Digital

Deddy Mulyana, Metode Penelitian Kualitatif : Paradigma Baru Ilmu Komunikasi dan Ilmu Sosial Lainnya (Bandung: Rosda, 2002).. Dieter Bartels, Tuhanmu Bukan Lagi Tuhanku :