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

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.
function Train_Callback(hObject, eventdata, handles)
% hObject
handle to pushbutton7 (see GCBO)

Universitas Sumatera Utara

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
% handles
structure with handles and user data (see GUIDATA)


Universitas Sumatera Utara

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.
function foto_CreateFcn(hObject, eventdata, handles)


Universitas Sumatera Utara

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'));
[net,tr]=backpropagation(epoh,galat,alpha,nhidden);
save('matlab.mat','net','tr');

Universitas Sumatera Utara

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)
% Hints: get(hObject,'String') returns contents of edit2 as text
%
str2double(get(hObject,'String')) returns contents of
edit2 as a double

Universitas Sumatera Utara

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

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

Universitas Sumatera Utara

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');
% Choose default command line output for Trial
handles.output = hObject;

Universitas Sumatera Utara

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

Universitas Sumatera Utara

9

% eventdata
MATLAB
% handles

reserved - to be defined in a future version of
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'))
set(hObject,'BackgroundColor','white');
end

Universitas Sumatera Utara

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'))
set(hObject,'BackgroundColor','white');

Universitas Sumatera Utara

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.
%
See ISPC and COMPUTER.

Universitas Sumatera Utara

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
% handles
empty - handles not created until after all
CreateFcns called

Universitas Sumatera Utara

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)
% eventdata reserved - to be defined in a future version of
MATLAB

Universitas Sumatera Utara

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'))
set(hObject,'BackgroundColor','white');
end

Universitas Sumatera Utara

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.
function popupmenu15_CreateFcn(hObject, eventdata, handles)

Universitas Sumatera Utara

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
% handles
structure with handles and user data (see GUIDATA)
v=get(handles.popupmenu17,'Value');

Universitas Sumatera Utara

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)
% eventdata reserved - to be defined in a future version of
MATLAB

Universitas Sumatera Utara

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
set(handles.keringat,'string','0');

Universitas Sumatera Utara

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
% handles
empty - handles not created until after all
CreateFcns called

Universitas Sumatera Utara

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
set(handles.gelisah,'string','0.5');
case 3

Universitas Sumatera Utara

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
% handles
structure with handles and user data (see GUIDATA)

Universitas Sumatera Utara

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
% handles
structure with handles and user data (see GUIDATA)

Universitas Sumatera Utara

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
% handles
structure with handles and user data (see GUIDATA)

Universitas Sumatera Utara

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)
% Hints: get(hObject,'String') returns contents of tengkuk as text
%
str2double(get(hObject,'String')) returns contents of
tengkuk as a double

Universitas Sumatera Utara

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.
function jantung_CreateFcn(hObject, eventdata, handles)
% hObject
handle to jantung (see GCBO)

Universitas Sumatera Utara

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
set(handles.sesaknapas,'String','');
set(handles.gelisah,'String','');
set(handles.oyong,'String','');
set(handles.keringat,'String','');
set(handles.pandangan,'String','');
set(handles.mual,'String','');
set(handles.mimisan,'String','');
set(handles.konsen,'String','');

Universitas Sumatera Utara

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)
% eventdata reserved - to be defined in a future version of
MATLAB

Universitas Sumatera Utara

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