12.07.2015 Views

Lampiran : Flow Chart Disain GUI MATLAB Disain Uicontrol ...

Lampiran : Flow Chart Disain GUI MATLAB Disain Uicontrol ...

Lampiran : Flow Chart Disain GUI MATLAB Disain Uicontrol ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Lampiran</strong> C: Fungsi M-file untuk program aplikasi Operasi Dasar Matematikafunction varargout = Operasi_Dasar_Matematika(varargin)% OPERASI_DASAR_MATEMATIKA M-file for Operasi_Dasar_Matematika.fig% OPERASI_DASAR_MATEMATIKA, by itself, creates a new OPERASI_DASAR_MATEMATIKA or% raises the existing% singleton*.%% H = OPERASI_DASAR_MATEMATIKA returns the handle to a new% OPERASI_DASAR_MATEMATIKA or the handle to% the existing singleton*.%% OPERASI_DASAR_MATEMATIKA('CALLBACK',hObject,eventData,handles,...) calls the% local% function named CALLBACK in OPERASI_DASAR_MATEMATIKA.M with the given input% arguments.%% OPERASI_DASAR_MATEMATIKA('Property','Value',...) creates a new% OPERASI_DASAR_MATEMATIKA or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the <strong>GUI</strong> before Operasi_Dasar_Matematika_OpeningFunction gets called.% An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to Operasi_Dasar_Matematika_OpeningFcn via% varargin.%% *See <strong>GUI</strong> Options on <strong>GUI</strong>DE's Tools menu. Choose "<strong>GUI</strong> allows only one% instance to run (singleton)".%% See also: <strong>GUI</strong>DE, <strong>GUI</strong>DATA, <strong>GUI</strong>HANDLES% Edit the above text to modify the response to help Operasi_Dasar_Matematika% Last Modified by <strong>GUI</strong>DE v2.5 13-Sep-2007 13:25:44% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @Operasi_Dasar_Matematika_OpeningFcn, ...'gui_OutputFcn', @Operasi_Dasar_Matematika_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});elsegui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before Operasi_Dasar_Matematika is made visible.function Operasi_Dasar_Matematika_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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% varargin command line arguments to Operasi_Dasar_Matematika (see VARARGIN)% Choose default command line output for Operasi_Dasar_Matematikahandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes Operasi_Dasar_Matematika wait for user response (see UIRESUME)% uiwait(handles.figure1);Universitas Sumatera Utara


% --- Outputs from this function are returned to the command line.function varargout = Operasi_Dasar_Matematika_OutputFcn(hObject, eventdata, handles)% varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Get default command line output from handles structurevarargout{1} = handles.output;function EdHasil_Callback(hObject, eventdata, handles)% hObject handle to EdHasil (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of EdHasil as text% str2double(get(hObject,'String')) returns contents of EdHasil as a double% --- Executes during object creation, after setting all properties.function EdHasil_CreateFcn(hObject, eventdata, handles)% hObject handle to EdHasil (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');end% --- Executes on button press in TombKali.function TombKali_Callback(hObject, eventdata, handles)% hObject handle to TombKali (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)myform = guidata(gcbo);dat1=str2double(get(myform.EdData1,'String'));dat2=str2double(get(myform.EdData2,'String'));na=(dat1 * dat2)set(myform.EdHasil,'String', num2str(na));% --- Executes on button press in TombTambah.function TombTambah_Callback(hObject, eventdata, handles)% hObject handle to TombTambah (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)myform = guidata(gcbo);dat1=str2double(get(myform.EdData1,'String'));dat2=str2double(get(myform.EdData2,'String'));na=(dat1+ dat2)set(myform.EdHasil,'String', num2str(na));% --- Executes during object creation, after setting all properties.function TombTambah_CreateFcn(hObject, eventdata, handles)% hObject handle to TombTambah (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% --- Executes on button press in TombKurang.function TombKurang_Callback(hObject, eventdata, handles)% hObject handle to TombKurang (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)myform = guidata(gcbo);dat1=str2double(get(myform.EdData1,'String'));dat2=str2double(get(myform.EdData2,'String'));na=(dat1 - dat2)Universitas Sumatera Utara


set(myform.EdHasil,'String', num2str(na));% --- Executes on button press in TombBagi.function TombBagi_Callback(hObject, eventdata, handles)% hObject handle to TombBagi (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)myform = guidata(gcbo);dat1=str2double(get(myform.EdData1,'String'));dat2=str2double(get(myform.EdData2,'String'));na=(dat1 / dat2)set(myform.EdHasil,'String', num2str(na));% --- Executes on button press in TombKuadrat.function TombKuadrat_Callback(hObject, eventdata, handles)% hObject handle to TombKuadrat (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)myform = guidata(gcbo);dat1=str2double(get(myform.EdData1,'String'));dat2=str2double(get(myform.EdData2,'String'));na=(dat1^2)set(myform.EdHasil,'String', num2str(na));% --- Executes on button press in TombPangkat.function TombPangkat_Callback(hObject, eventdata, handles)% hObject handle to TombPangkat (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)myform = guidata(gcbo);dat1=str2double(get(myform.EdData1,'String'));dat2=str2double(get(myform.EdData2,'String'));na=(dat1^dat2)set(myform.EdHasil,'String', num2str(na));% --- Executes on button press in TombAkar.function TombAkar_Callback(hObject, eventdata, handles)% hObject handle to TombAkar (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)myform = guidata(gcbo);dat1=str2double(get(myform.EdData1,'String'));dat2=str2double(get(myform.EdData2,'String'));na=sqrt(dat1)set(myform.EdHasil,'String', num2str(na));% --- Executes on button press in TombPngktDua.function TombPngktDua_Callback(hObject, eventdata, handles)% hObject handle to TombPngktDua (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)myform = guidata(gcbo);dat1=str2double(get(myform.EdData1,'String'));dat2=str2double(get(myform.EdData2,'String'));na=(dat1^2)set(myform.EdHasil,'String', num2str(na));% --- Executes on button press in TombPngktTiga.function TombPngktTiga_Callback(hObject, eventdata, handles)Universitas Sumatera Utara


% hObject handle to TombPngktTiga (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)myform = guidata(gcbo);dat1=str2double(get(myform.EdData1,'String'));dat2=str2double(get(myform.EdData2,'String'));na=(dat1^3)set(myform.EdHasil,'String', num2str(na));% --- Executes on button press in TombLn.function TombLn_Callback(hObject, eventdata, handles)% hObject handle to TombLn (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)myform = guidata(gcbo);dat1=str2double(get(myform.EdData1,'String'));dat2=str2double(get(myform.EdData2,'String'));na=log(dat1)set(myform.EdHasil,'String', num2str(na));% --- Executes on button press in TombLog.function TombLog_Callback(hObject, eventdata, handles)% hObject handle to TombLog (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)myform = guidata(gcbo);dat1=str2double(get(myform.EdData1,'String'));dat2=str2double(get(myform.EdData2,'String'));na=log10(dat1)set(myform.EdHasil,'String', num2str(na));function EdData1_Callback(hObject, eventdata, handles)% hObject handle to EdData1 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of EdData1 as text% str2double(get(hObject,'String')) returns contents of EdData1 as a double% --- Executes during object creation, after setting all properties.function EdData1_CreateFcn(hObject, eventdata, handles)% hObject handle to EdData1 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endfunction EdData2_Callback(hObject, eventdata, handles)% hObject handle to EdData2 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of EdData2 as text% str2double(get(hObject,'String')) returns contents of EdData2 as a doubleUniversitas Sumatera Utara


% --- Executes during object creation, after setting all properties.function EdData2_CreateFcn(hObject, eventdata, handles)% hObject handle to EdData2 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');end% --- Executes on button press in TombTutup.function TombTutup_Callback(hObject, eventdata, handles)% hObject handle to TombTutup (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)close;% --- Executes on button press in TombReset.function TombReset_Callback(hObject, eventdata, handles)% hObject handle to TombReset (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)myform = guidata(gcbo);set(myform.EdData1,'String', '0');set(myform.EdData2,'String', '0');set(myform.EdHasil,'String', '0');% --- Executes on button press in TombKeluar.function TombKeluar_Callback(hObject, eventdata, handles)% hObject handle to TombKeluar (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)close;% --------------------------------------------------------------------function Tunjuk_Callback(hObject, eventdata, handles)% hObject handle to Tunjuk (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)fig=openfig('Petunjuk_Operasi_Dasar_Matematika.fig');handles=guihandles(fig);guidata(fig,handles);Universitas Sumatera Utara


<strong>Lampiran</strong> D: Fungsi M-file untuk program aplikasi Bangun Datarfunction varargout = Bangun_Datar(varargin)% BANGUN_DATAR M-file for Bangun_Datar.fig% BANGUN_DATAR, by itself, creates a new BANGUN_DATAR or raises the existing% singleton*.%% H = BANGUN_DATAR returns the handle to a new BANGUN_DATAR or the handle to% the existing singleton*.%% BANGUN_DATAR('CALLBACK',hObject,eventData,handles,...) calls the local% function named CALLBACK in BANGUN_DATAR.M with the given input arguments.%% BANGUN_DATAR('Property','Value',...) creates a new BANGUN_DATAR or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the <strong>GUI</strong> before Bangun_Datar_OpeningFunction gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to Bangun_Datar_OpeningFcn via varargin.%% *See <strong>GUI</strong> Options on <strong>GUI</strong>DE's Tools menu. Choose "<strong>GUI</strong> allows only one% instance to run (singleton)".%% See also: <strong>GUI</strong>DE, <strong>GUI</strong>DATA, <strong>GUI</strong>HANDLES% Edit the above text to modify the response to help Bangun_Datar% Last Modified by <strong>GUI</strong>DE v2.5 12-Sep-2007 15:19:29% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @Bangun_Datar_OpeningFcn, ...'gui_OutputFcn', @Bangun_Datar_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});elsegui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDITfunction matikan(off)set(off,'Value',0);% --- Executes just before Bangun_Datar is made visible.function Bangun_Datar_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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% varargin command line arguments to Bangun_Datar (see VARARGIN)% Choose default command line output for Bangun_Datarhandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes Bangun_Datar wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = Bangun_Datar_OutputFcn(hObject, eventdata, handles)% varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)Universitas Sumatera Utara


% Get default command line output from handles structurevarargout{1} = handles.output;function edit1_Callback(hObject, eventdata, handles)% hObject handle to edit1 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of 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 <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit2_Callback(hObject, eventdata, handles)% hObject handle to edit2 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of edit2 as text% --- Executes during object creation, after setting all properties.function edit2_CreateFcn(hObject, eventdata, handles)% hObject handle to edit2 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');end% --- Executes on button press in TombSelesai.function TombSelesai_Callback(hObject, eventdata, handles)% hObject handle to TombSelesai (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)close;% --- Executes on button press in PilEmpat.function PilEmpat_Callback(hObject, eventdata, handles)% hObject handle to PilEmpat (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil1=get(handles.PilEmpat,'value');if nil1==1set(handles.text2,'string','');set(handles.text3,'string','Panjang');set(handles.text4,'string','Lebar');set(handles.text5,'string','Menghitung Keliling dan Luas pada Segi Empat');set(handles.text6,'string','');set(handles.text7,'string','');set(handles.text8,'string','');set(handles.text9,'string','');set(handles.text10,'string','Keliling = 2 x (panjang + lebar)');set(handles.text11,'string','Luas = panjang x Lebar');set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.edit3,'string','');set(handles.edit4,'string','');set(handles.PilTiga,'value',0);set(handles.PilLay,'value',0);set(handles.PilLing,'value',0);set(handles.PilTrap,'value',0);Universitas Sumatera Utara


set(handles.PilGen,'value',0);end% Hint: get(hObject,'Value') returns toggle state of PilEmpat% --- Executes on button press in PilTiga.function PilTiga_Callback(hObject, eventdata, handles)% hObject handle to PilTiga (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil2=get(handles.PilTiga,'value');if nil2==1set(handles.text2,'string','Sisi');set(handles.text3,'string','Tinggi');set(handles.text4,'string','');set(handles.text5,'string','Menghitung Keliling dan Luas pada Segi Tiga');set(handles.text6,'string','Sisi Alas');set(handles.text7,'string','Sisi 2');set(handles.text8,'string','Sisi 3');set(handles.text9,'string','');set(handles.text10,'string','Keliling = Sisi Alas + Sisi 2 + Sisi 3 ');set(handles.text11,'string','Luas = 1/2 x Sisi Alas x Tinggi');set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.edit3,'string','');set(handles.edit4,'string','');set(handles.edit5,'string','');set(handles.edit6,'string','');set(handles.EdKel,'string','');set(handles.EdLuas,'string','');set(handles.PilEmpat,'value',0);set(handles.PilLay,'value',0);set(handles.PilLing,'value',0);set(handles.PilTrap,'value',0);set(handles.PilGen,'value',0);end% Hint: get(hObject,'Value') returns toggle state of PilTiga% --- Executes on button press in PilLay.function PilLay_Callback(hObject, eventdata, handles)% hObject handle to PilLay (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil3=get(handles.PilLay,'value');if nil3==1set(handles.text2,'string','Sisi');set(handles.text3,'string','Diagonal 1');set(handles.text4,'string','Diagonal 2');set(handles.text5,'string','Menghitung Keliling dan Luas pada Layang-Layang');set(handles.text6,'string','Sisi 1');set(handles.text7,'string','Sisi 2');set(handles.text8,'string','Sisi 3');set(handles.text9,'string','Sisi 4');set(handles.text10,'string','Keliling = Sisi 1 + Sisi 2 + Sisi 3 + Sisi 4');set(handles.text11,'string','Luas = 1/2 x (Diagonal 1 x Diagonal 2)');set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.edit3,'string','');set(handles.edit4,'string','');set(handles.edit5,'string','');set(handles.edit6,'string','');set(handles.EdKel,'string','');set(handles.EdLuas,'string','');set(handles.PilEmpat,'value',0);set(handles.PilTiga,'value',0);set(handles.PilLing,'value',0);set(handles.PilTrap,'value',0);set(handles.PilGen,'value',0);end% Hint: get(hObject,'Value') returns toggle state of PilLayUniversitas Sumatera Utara


% --- Executes on button press in PilLing.function PilLing_Callback(hObject, eventdata, handles)% hObject handle to PilLing (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil4=get(handles.PilLing,'value');if nil4==1set(handles.text2,'string','');set(handles.text3,'string','Jari-Jari');set(handles.text4,'string','');set(handles.text5,'string','Menghitung Keliling dan Luas pada Lingkaran');set(handles.text6,'string','');set(handles.text7,'string','');set(handles.text8,'string','');set(handles.text9,'string','');set(handles.text10,'string','Keliling = 2 x pi x Jari-Jari ; pi = 3,1416...');set(handles.text11,'string','Luas = pi x Jari-jari x Jari-Jari');set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.edit3,'string','');set(handles.edit4,'string','');set(handles.edit5,'string','');set(handles.edit6,'string','');set(handles.EdKel,'string','');set(handles.EdLuas,'string','');set(handles.PilEmpat,'value',0);set(handles.PilTiga,'value',0);set(handles.PilLay,'value',0);set(handles.PilTrap,'value',0);set(handles.PilGen,'value',0);end% Hint: get(hObject,'Value') returns toggle state of PilLing% --- Executes on button press in PilTrap.function PilTrap_Callback(hObject, eventdata, handles)% hObject handle to PilTrap (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil5=get(handles.PilTrap,'value');if nil5==1set(handles.text2,'string','Sisi');set(handles.text3,'string','Tinggi');set(handles.text4,'string','');set(handles.text5,'string','Menghitung Keliling dan Luas pada Trapesium');set(handles.text6,'string','Sisi Alas');set(handles.text7,'string','Sisi Atas');set(handles.text8,'string','Sisi 3');set(handles.text9,'string','Sisi 4');set(handles.text10,'string','Keliling = Sisi Alas + Sisi Atas + Sisi 3 + Sisi 4');set(handles.text11,'string','Luas = 1/2 x (Sisi Alas x Sisi Atas) x Tinggi');set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.edit3,'string','');set(handles.edit4,'string','');set(handles.edit5,'string','');set(handles.edit6,'string','');set(handles.EdKel,'string','');set(handles.EdLuas,'string','');set(handles.PilEmpat,'value',0);set(handles.PilTiga,'value',0);set(handles.PilLay,'value',0);set(handles.PilLing,'value',0);set(handles.PilGen,'value',0);end% Hint: get(hObject,'Value') returns toggle state of PilTrapUniversitas Sumatera Utara


% --- Executes on button press in PilGen.function PilGen_Callback(hObject, eventdata, handles)% hObject handle to PilGen (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil6=get(handles.PilGen,'value');if nil6==1set(handles.text2,'string','Sisi');set(handles.text3,'string','Tinggi');set(handles.text4,'string','');set(handles.text5,'string','Menghitung Keliling dan Luas pada Jajaran Genjang');set(handles.text6,'string','Sisi Alas');set(handles.text7,'string','Sisi Atas');set(handles.text8,'string','Sisi 3');set(handles.text9,'string','Sisi 4');set(handles.text10,'string','Keliling = Sisi Alas + Sisi Atas + Sisi 3 + Sisi 4');set(handles.text11,'string','Luas = Sisi Alas x Tinggi');set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.edit3,'string','');set(handles.edit4,'string','');set(handles.edit5,'string','');set(handles.edit6,'string','');set(handles.EdKel,'string','');set(handles.EdLuas,'string','');set(handles.PilEmpat,'value',0);set(handles.PilTiga,'value',0);set(handles.PilLay,'value',0);set(handles.PilLing,'value',0);set(handles.PilTrap,'value',0);end% Hint: get(hObject,'Value') returns toggle state of PilGenfunction EdKel_Callback(hObject, eventdata, handles)% hObject handle to EdKel (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of EdKel as text% str2double(get(hObject,'String')) returns contents of EdKel as a double% --- Executes during object creation, after setting all properties.function EdKel_CreateFcn(hObject, eventdata, handles)% hObject handle to EdKel (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endfunction EdLuas_Callback(hObject, eventdata, handles)% hObject handle to EdLuas (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of EdLuas as text% str2double(get(hObject,'String')) returns contents of EdLuas as a double% --- Executes during object creation, after setting all properties.function EdLuas_CreateFcn(hObject, eventdata, handles)% hObject handle to EdLuas (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endUniversitas Sumatera Utara


% --- Executes on button press in TombReset.function TombReset_Callback(hObject, eventdata, handles)% hObject handle to TombReset (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.edit3,'string','');set(handles.edit4,'string','');set(handles.edit5,'string','');set(handles.edit6,'string','');set(handles.EdKel,'string','');set(handles.EdLuas,'string','');% --- Executes on button press in TombKel.function TombKel_Callback(hObject, eventdata, handles)% hObject handle to TombKel (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil1=get(handles.PilEmpat,'value');nil2=get(handles.PilTiga,'value');nil3=get(handles.PilLay,'value');nil4=get(handles.PilLing,'value');nil5=get(handles.PilTrap,'value');nil6=get(handles.PilGen,'value');a=str2num(get(handles.edit1,'string'));b=str2num(get(handles.edit2,'string'));c=str2num(get(handles.edit3,'string'));d=str2num(get(handles.edit4,'string'));y=str2num(get(handles.edit5,'string'));z=str2num(get(handles.edit6,'string'));if nil1==1kel=2*(y+z);elseif nil2 ==1kel=a+b+c;elseif nil3==1;kel=a+b+c+d;elseif nil4==1kel=2*pi*y;elseif nil5==1kel=a+b+c+d;elseif nil6==1kel=a+b+c+d;endset(handles.EdKel,'string',kel);% --- Executes on button press in TombLuas.function TombLuas_Callback(hObject, eventdata, handles)% hObject handle to TombLuas (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil1=get(handles.PilEmpat,'value');nil2=get(handles.PilTiga,'value');nil3=get(handles.PilLay,'value');nil4=get(handles.PilLing,'value');nil5=get(handles.PilTrap,'value');nil6=get(handles.PilGen,'value');a=str2num(get(handles.edit1,'string'));b=str2num(get(handles.edit2,'string'));c=str2num(get(handles.edit3,'string'));d=str2num(get(handles.edit4,'string'));y=str2num(get(handles.edit5,'string'));z=str2num(get(handles.edit6,'string'));if nil1==1luas=y*z;elseif nil2 ==1luas=1/2*a*y;elseif nil3==1;luas=1/2*y*z;elseif nil4==1luas=pi*(y^2);Universitas Sumatera Utara


elseif nil5==1luas=1/2*(a+b)*y;elseif nil6==1luas=a*y;endset(handles.EdLuas,'string',luas);function edit3_Callback(hObject, eventdata, handles)% hObject handle to edit3 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of 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 <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit7_Callback(hObject, eventdata, handles)% hObject handle to edit2 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of edit2 as text% str2double(get(hObject,'String')) returns contents of edit2 as a double% --- Executes during object creation, after setting all properties.function edit7_CreateFcn(hObject, eventdata, handles)% hObject handle to edit2 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit8_Callback(hObject, eventdata, handles)% hObject handle to edit8 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of edit8 as text% str2double(get(hObject,'String')) returns contents of edit8 as a double% --- Executes during object creation, after setting all properties.function edit8_CreateFcn(hObject, eventdata, handles)% hObject handle to edit8 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endUniversitas Sumatera Utara


function edit4_Callback(hObject, eventdata, handles)% hObject handle to edit4 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of edit4 as text% str2double(get(hObject,'String')) returns contents of edit4 as a double% --- Executes during object creation, after setting all properties.function edit4_CreateFcn(hObject, eventdata, handles)% hObject handle to edit4 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit5_Callback(hObject, eventdata, handles)% hObject handle to edit5 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of edit5 as text% str2double(get(hObject,'String')) returns contents of edit5 as a double% --- Executes during object creation, after setting all properties.function edit5_CreateFcn(hObject, eventdata, handles)% hObject handle to edit5 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit6_Callback(hObject, eventdata, handles)% hObject handle to edit6 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of edit6 as text% str2double(get(hObject,'String')) returns contents of edit6 as a double% --- Executes during object creation, after setting all properties.function edit6_CreateFcn(hObject, eventdata, handles)% hObject handle to edit6 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');end% --- Executes during object creation, after setting all properties.function edit10_CreateFcn(hObject, eventdata, handles)% hObject handle to edit10 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% --- Executes during object creation, after setting all properties.function edit11_CreateFcn(hObject, eventdata, handles)% hObject handle to edit11 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns calledUniversitas Sumatera Utara


<strong>Lampiran</strong> E: Fungsi M-file untuk program aplikasi Bangun Ruangfunction varargout = Bangun_Ruang(varargin)% BANGUN_RUANG M-file for Bangun_Ruang.fig% BANGUN_RUANG, by itself, creates a new BANGUN_RUANG or raises the existing% singleton*.%% H = BANGUN_RUANG returns the handle to a new BANGUN_RUANG or the handle to% the existing singleton*.%% BANGUN_RUANG('CALLBACK',hObject,eventData,handles,...) calls the local% function named CALLBACK in BANGUN_RUANG.M with the given input arguments.%% BANGUN_RUANG('Property','Value',...) creates a new BANGUN_RUANG or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the <strong>GUI</strong> before Bangun_Ruang_OpeningFunction gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to Bangun_Ruang_OpeningFcn via varargin.%% *See <strong>GUI</strong> Options on <strong>GUI</strong>DE's Tools menu. Choose "<strong>GUI</strong> allows only one% instance to run (singleton)".%% See also: <strong>GUI</strong>DE, <strong>GUI</strong>DATA, <strong>GUI</strong>HANDLES% Edit the above text to modify the response to help Bangun_Ruang% Last Modified by <strong>GUI</strong>DE v2.5 12-Sep-2007 14:33:16% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @Bangun_Ruang_OpeningFcn, ...'gui_OutputFcn', @Bangun_Ruang_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});elsegui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDITfunction matikan(off)set(off,'Value',0);% --- Executes just before Bangun_Ruang is made visible.function Bangun_Ruang_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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% varargin command line arguments to Bangun_Ruang (see VARARGIN)% Choose default command line output for Bangun_Ruanghandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes Bangun_Ruang wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = Bangun_Ruang_OutputFcn(hObject, eventdata, handles)% varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)Universitas Sumatera Utara


% Get default command line output from handles structurevarargout{1} = handles.output;function edit1_Callback(hObject, eventdata, handles)% hObject handle to edit1 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of 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 <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit2_Callback(hObject, eventdata, handles)% hObject handle to edit2 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of edit2 as text% --- Executes during object creation, after setting all properties.function edit2_CreateFcn(hObject, eventdata, handles)% hObject handle to edit2 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');end% --- Executes on button press in TombSelesai.function TombSelesai_Callback(hObject, eventdata, handles)% hObject handle to TombSelesai (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)close;% --- Executes on button press in PilKubus.function PilKubus_Callback(hObject, eventdata, handles)% hObject handle to PilKubus (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil1=get(handles.PilKubus,'value');if nil1==1set(handles.text2,'string','Menghitung Volume Kubus');set(handles.text3,'string','Volume = Sisi x Sisi x Sisi');set(handles.text4,'string','Sisi');set(handles.text5,'string','');set(handles.text6,'string','');set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.edit3,'string','');set(handles.EdVol,'string','');set(handles.PilBalok,'value',0);set(handles.PilPris,'value',0);set(handles.PilLimTig,'value',0);set(handles.PilLimPat,'value',0);set(handles.PilSil,'value',0);set(handles.PilKer,'value',0);set(handles.PilBol,'value',0);endUniversitas Sumatera Utara


% Hint: get(hObject,'Value') returns toggle state of PilKubus% --- Executes on button press in PilBalok.function PilBalok_Callback(hObject, eventdata, handles)% hObject handle to PilBalok (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil2=get(handles.PilBalok,'value');if nil2==1set(handles.text2,'string','Menghitung Volume Balok');set(handles.text3,'string','Volume = Panjang x Lebar x Tinggi');set(handles.text4,'string','Panjang');set(handles.text5,'string','Lebar');set(handles.text6,'string','Tinggi');set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.edit3,'string','');set(handles.EdVol,'string','');set(handles.PilKubus,'value',0);set(handles.PilPris,'value',0);set(handles.PilLimTig,'value',0);set(handles.PilLimPat,'value',0);set(handles.PilSil,'value',0);set(handles.PilKer,'value',0);set(handles.PilBol,'value',0);end% Hint: get(hObject,'Value') returns toggle state of PilBalok% --- Executes on button press in PilPris.function PilPris_Callback(hObject, eventdata, handles)% hObject handle to PilPris (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil3=get(handles.PilPris,'value');if nil3==1set(handles.text2,'string','Menghitung Volume Prisma Segi Tiga');set(handles.text3,'string','Volume = (1/2 x Rusuk Sisi Alas x Tinggi Sisi Alas) xTinggi');set(handles.text4,'string','Rusuk Sisi Alas');set(handles.text5,'string','Tinggi Sisi Alas');set(handles.text6,'string','Tinggi');set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.edit3,'string','');set(handles.EdVol,'string','');set(handles.PilKubus,'value',0);set(handles.PilBalok,'value',0);set(handles.PilLimTig,'value',0);set(handles.PilLimPat,'value',0);set(handles.PilSil,'value',0);set(handles.PilKer,'value',0);set(handles.PilBol,'value',0);end% Hint: get(hObject,'Value') returns toggle state of PilPris% --- Executes on button press in PilLimTig.function PilLimTig_Callback(hObject, eventdata, handles)% hObject handle to PilLimTig (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil4=get(handles.PilLimTig,'value');if nil4==1set(handles.text2,'string','Menghitung Volume Limas Segi Tiga');set(handles.text3,'string','Volume = 1/3 x (1/2 x Rusuk Sisi Alas x Tinggi SisiAlas) x Tinggi');set(handles.text4,'string','Rusuk Sisi Alas');set(handles.text5,'string','Tinggi Sisi Alas');set(handles.text6,'string','Tinggi');set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.edit3,'string','');set(handles.EdVol,'string','');set(handles.PilKubus,'value',0);set(handles.PilBalok,'value',0);Universitas Sumatera Utara


endset(handles.PilPris,'value',0);set(handles.PilLimPat,'value',0);set(handles.PilSil,'value',0);set(handles.PilKer,'value',0);set(handles.PilBol,'value',0);% Hint: get(hObject,'Value') returns toggle state of PilLimTig% --- Executes on button press in PilLimPat.function PilLimPat_Callback(hObject, eventdata, handles)% hObject handle to PilLimPat (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil5=get(handles.PilLimPat,'value');if nil5==1set(handles.text2,'string','Menghitung Volume Limas Segi Empat');set(handles.text3,'string','Volume = 1/3 x (Panjang Sisi Alas x Tinggi Sisi Alas)x Tinggi');set(handles.text4,'string','Panjang Sisi Alas');set(handles.text5,'string','Lebar Sisi Alas');set(handles.text6,'string','Tinggi');set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.edit3,'string','');set(handles.EdVol,'string','');set(handles.PilKubus,'value',0);set(handles.PilBalok,'value',0);set(handles.PilPris,'value',0);set(handles.PilLimTig,'value',0);set(handles.PilSil,'value',0);set(handles.PilKer,'value',0);set(handles.PilBol,'value',0);end% Hint: get(hObject,'Value') returns toggle state of PilLimPat% --- Executes on button press in PilSil.function PilSil_Callback(hObject, eventdata, handles)% hObject handle to PilSil (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil6=get(handles.PilSil,'value');if nil6==1set(handles.text2,'string','Menghitung Volume Silinder');set(handles.text3,'string','Volume = pi x (Jari-Jari Alas x Jari-Jari Alas) xTinggi');set(handles.text4,'string','Jari-Jari Alas');set(handles.text5,'string','Tinggi');set(handles.text6,'string','');set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.edit3,'string','');set(handles.EdVol,'string','');set(handles.PilKubus,'value',0);set(handles.PilBalok,'value',0);set(handles.PilPris,'value',0);set(handles.PilLimTig,'value',0);set(handles.PilLimPat,'value',0);set(handles.PilKer,'value',0);set(handles.PilBol,'value',0);end% Hint: get(hObject,'Value') returns toggle state of PilSil% --- Executes on button press in PilKer.function PilKer_Callback(hObject, eventdata, handles)% hObject handle to PilKer (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil7=get(handles.PilKer,'value');if nil7==1set(handles.text2,'string','Menghitung Volume Kerucut');set(handles.text3,'string','Volume = 1/3 x(pi x (Jari-Jari Alas x Jari-Jari Alas))x Tinggi');Universitas Sumatera Utara


endset(handles.text4,'string','Jari-Jari Alas');set(handles.text5,'string','Tinggi');set(handles.text6,'string','');set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.edit3,'string','');set(handles.EdVol,'string','');set(handles.PilKubus,'value',0);set(handles.PilBalok,'value',0);set(handles.PilPris,'value',0);set(handles.PilLimTig,'value',0);set(handles.PilLimPat,'value',0);set(handles.PilSil,'value',0);set(handles.PilBol,'value',0);% Hint: get(hObject,'Value') returns toggle state of PilKer% --- Executes on button press in PilBol.function PilBol_Callback(hObject, eventdata, handles)% hObject handle to PilBol (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil8=get(handles.PilBol,'value');if nil8==1set(handles.text2,'string','Menghitung Volume Bola');set(handles.text3,'string','Volume = 4/3 xpi x (Jari-Jari Alas x Jari-JariAlas)');set(handles.text4,'string','Jari-Jari');set(handles.text5,'string','');set(handles.text6,'string','');set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.edit3,'string','');set(handles.EdVol,'string','');set(handles.PilKubus,'value',0);set(handles.PilBalok,'value',0);set(handles.PilPris,'value',0);set(handles.PilLimTig,'value',0);set(handles.PilLimPat,'value',0);set(handles.PilSil,'value',0);set(handles.PilKer,'value',0);end% Hint: get(hObject,'Value') returns toggle state of PilBolfunction EdVol_Callback(hObject, eventdata, handles)% hObject handle to EdVol (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of EdVol as text% str2double(get(hObject,'String')) returns contents of EdVol as a double% --- Executes during object creation, after setting all properties.function EdVol_CreateFcn(hObject, eventdata, handles)% hObject handle to EdVol (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');end% --- Executes on button press in TombReset.function TombReset_Callback(hObject, eventdata, handles)% hObject handle to TombReset (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)set(handles.edit1,'string','');set(handles.edit2,'string','');set(handles.edit3,'string','');Universitas Sumatera Utara


set(handles.EdVol,'string','');% --- Executes on button press in TombVol.function TombVol_Callback(hObject, eventdata, handles)% hObject handle to TombVol (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)nil1=get(handles.PilKubus,'value');nil2=get(handles.PilBalok,'value');nil3=get(handles.PilPris,'value');nil4=get(handles.PilLimTig,'value');nil5=get(handles.PilLimPat,'value');nil6=get(handles.PilSil,'value');nil7=get(handles.PilKer,'value');nil8=get(handles.PilBol,'value');a=str2num(get(handles.edit1,'string'));b=str2num(get(handles.edit2,'string'));c=str2num(get(handles.edit3,'string'));if nil1==1vol=a^3;elseif nil2 ==1vol=a*b*c;elseif nil3==1;vol=1/2*a*c;elseif nil4==1vol=1/3*1/2*a*b*c;elseif nil5==1vol=1/3*(a+b)*c;elseif nil6==1vol=(pi*a^2)*c;elseif nil7==1vol=1/3*(pi*a^2)*c;elseif nil8==1vol=4/3*(pi*a^2);endset(handles.EdVol,'string',vol);function edit3_Callback(hObject, eventdata, handles)% hObject handle to edit3 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of 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 <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit7_Callback(hObject, eventdata, handles)% hObject handle to edit2 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of edit2 as text% str2double(get(hObject,'String')) returns contents of edit2 as a double% --- Executes during object creation, after setting all properties.function edit7_CreateFcn(hObject, eventdata, handles)% hObject handle to edit2 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))Universitas Sumatera Utara


set(hObject,'BackgroundColor','white');endfunction edit8_Callback(hObject, eventdata, handles)% hObject handle to edit8 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of edit8 as text% str2double(get(hObject,'String')) returns contents of edit8 as a double% --- Executes during object creation, after setting all properties.function edit8_CreateFcn(hObject, eventdata, handles)% hObject handle to edit8 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit4_Callback(hObject, eventdata, handles)% hObject handle to edit4 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of edit4 as text% str2double(get(hObject,'String')) returns contents of edit4 as a double% --- Executes during object creation, after setting all properties.function edit4_CreateFcn(hObject, eventdata, handles)% hObject handle to edit4 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit5_Callback(hObject, eventdata, handles)% hObject handle to edit2 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of edit2 as text% str2double(get(hObject,'String')) returns contents of edit2 as a double% --- Executes during object creation, after setting all properties.function edit5_CreateFcn(hObject, eventdata, handles)% hObject handle to edit2 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edit6_Callback(hObject, eventdata, handles)% hObject handle to edit3 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of edit3 as text% str2double(get(hObject,'String')) returns contents of edit3 as a doubleUniversitas Sumatera Utara


% --- Executes during object creation, after setting all properties.function edit6_CreateFcn(hObject, eventdata, handles)% hObject handle to edit3 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');end% --- Executes during object creation, after setting all properties.function edit10_CreateFcn(hObject, eventdata, handles)% hObject handle to edit10 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% --- Executes during object creation, after setting all properties.function edit11_CreateFcn(hObject, eventdata, handles)% hObject handle to edit11 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns calledUniversitas Sumatera Utara


<strong>Lampiran</strong> F: Fungsi M-file untuk program aplikasi Persamaan Kuadratfunction varargout = Persamaan_Kuadrat(varargin)% PERSAMAAN_KUADRAT M-file for Persamaan_Kuadrat.fig% PERSAMAAN_KUADRAT, by itself, creates a new PERSAMAAN_KUADRAT or raises the% existing% singleton*.%% H = PERSAMAAN_KUADRAT returns the handle to a new PERSAMAAN_KUADRAT or the% handle to% the existing singleton*.%% PERSAMAAN_KUADRAT('CALLBACK',hObject,eventData,handles,...) calls the local% function named CALLBACK in PERSAMAAN_KUADRAT.M with the given input arguments.%% PERSAMAAN_KUADRAT('Property','Value',...) creates a new PERSAMAAN_KUADRAT or% raises the% existing singleton*. Starting from the left, property value pairs are% applied to the <strong>GUI</strong> before Persamaan_Kuadrat_OpeningFunction gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to Persamaan_Kuadrat_OpeningFcn via varargin.%% *See <strong>GUI</strong> Options on <strong>GUI</strong>DE's Tools menu. Choose "<strong>GUI</strong> allows only one% instance to run (singleton)".%% See also: <strong>GUI</strong>DE, <strong>GUI</strong>DATA, <strong>GUI</strong>HANDLES% Edit the above text to modify the response to help Persamaan_Kuadrat% Last Modified by <strong>GUI</strong>DE v2.5 13-Sep-2007 01:45:57% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @Persamaan_Kuadrat_OpeningFcn, ...'gui_OutputFcn', @Persamaan_Kuadrat_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});elsegui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before Persamaan_Kuadrat is made visible.function Persamaan_Kuadrat_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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% varargin command line arguments to Persamaan_Kuadrat (see VARARGIN)% Choose default command line output for Persamaan_Kuadrathandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes Persamaan_Kuadrat wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = Persamaan_Kuadrat_OutputFcn(hObject, eventdata, handles)% varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)Universitas Sumatera Utara


% Get default command line output from handles structurevarargout{1} = handles.output;function EditA_Callback(hObject, eventdata, handles)% hObject handle to EditA (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of EditA as text% str2double(get(hObject,'String')) returns contents of EditA as a doublefunction EditA_CreateFcn(hObject, eventdata, handles)% hObject handle to EditA (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endfunction EditB_Callback(hObject, eventdata, handles)% hObject handle to EditB (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of EditB as text% str2double(get(hObject,'String')) returns contents of EditB as a double% --- Executes during object creation, after setting all properties.function EditB_CreateFcn(hObject, eventdata, handles)% hObject handle to EditB (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endfunction EditC_Callback(hObject, eventdata, handles)% hObject handle to EditC (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of EditC as text% str2double(get(hObject,'String')) returns contents of EditC as a double% --- Executes during object creation, after setting all properties.function EditC_CreateFcn(hObject, eventdata, handles)% hObject handle to EditC (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');end% --- Executes on button press in Tomb_Hitung.function Tomb_Hitung_Callback(hObject, eventdata, handles)% hObject handle to Tomb_Hitung (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)a=str2num(get(handles.EditA,'string'));b=str2num(get(handles.EditB,'string'));c=str2num(get(handles.EditC,'string'));D=b^2-4*a*c;x1=(-b+sqrt(D))/(2*a);x2=(-b-sqrt(D))/(2*a);if D


set(handles.EditX1,'String','i');set(handles.EditX2,'String','i');elseif D==0set(handles.text7,'String','Persamaan memiliki akar-akar yang real dan sama');set(handles.EditX1,'String',x1);set(handles.EditX2,'String',x2);elseif D>0set(handles.text7,'String','Persamaan memiliki akar-akar yang real danberlainan');set(handles.EditX1,'String',x1);set(handles.EditX2,'String',x2);endfunction EditX1_Callback(hObject, eventdata, handles)% hObject handle to EditX1 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of EditX1 as text% str2double(get(hObject,'String')) returns contents of EditX1 as a double% --- Executes during object creation, after setting all properties.function EditX1_CreateFcn(hObject, eventdata, handles)% hObject handle to EditX1 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endfunction EditX2_Callback(hObject, eventdata, handles)% hObject handle to EditX2 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of EditX2 as text% str2double(get(hObject,'String')) returns contents of EditX2 as a double% --- Executes during object creation, after setting all properties.function EditX2_CreateFcn(hObject, eventdata, handles)% hObject handle to EditX2 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');end% --- Executes on button press in pushbutton2.function pushbutton2_Callback(hObject, eventdata, handles)% hObject handle to pushbutton2 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)set(handles.text7,'String','');set(handles.EditA,'String','0');set(handles.EditB,'String','0');set(handles.EditC,'String','0');set(handles.EditX1,'String','0');set(handles.EditX2,'String','0');% --- Executes on button press in pushbutton3.function pushbutton3_Callback(hObject, eventdata, handles)% hObject handle to pushbutton3 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)close;Universitas Sumatera Utara


<strong>Lampiran</strong> G: Fungsi M-file untuk program aplikasi Fungsi Trigonometrifunction varargout = Fungsi_Trigonometri(varargin)% FUNGSI_TRIGONOMETRI M-file for Fungsi_Trigonometri.fig% FUNGSI_TRIGONOMETRI, by itself, creates a new FUNGSI_TRIGONOMETRI or raises the% existing% singleton*.%% H = FUNGSI_TRIGONOMETRI returns the handle to a new FUNGSI_TRIGONOMETRI or the% handle to% the existing singleton*.%% FUNGSI_TRIGONOMETRI('CALLBACK',hObject,eventData,handles,...) calls the local% function named CALLBACK in FUNGSI_TRIGONOMETRI.M with the given inputarguments.%% FUNGSI_TRIGONOMETRI('Property','Value',...) creates a new FUNGSI_TRIGONOMETRIor% raises the% existing singleton*. Starting from the left, property value pairs are% applied to the <strong>GUI</strong> before Fungsi_Trigonometri_OpeningFunction gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to Fungsi_Trigonometri_OpeningFcn via varargin.%% *See <strong>GUI</strong> Options on <strong>GUI</strong>DE's Tools menu. Choose "<strong>GUI</strong> allows only one% instance to run (singleton)".%% See also: <strong>GUI</strong>DE, <strong>GUI</strong>DATA, <strong>GUI</strong>HANDLES% Edit the above tomb_lihat to modify the response to help Fungsi_Trigonometri% Last Modified by <strong>GUI</strong>DE v2.5 13-Sep-2007 02:33:35% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @Fungsi_Trigonometri_OpeningFcn, ...'gui_OutputFcn', @Fungsi_Trigonometri_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});elsegui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before Fungsi_Trigonometri is made visible.function Fungsi_Trigonometri_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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% varargin command line arguments to Fungsi_Trigonometri (see VARARGIN)% Choose default command line output for Fungsi_Trigonometrihandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes Fungsi_Trigonometri wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = Fungsi_Trigonometri_OutputFcn(hObject, eventdata, handles)% varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)Universitas Sumatera Utara


% Get default command line output from handles structurevarargout{1} = handles.output;% --- Executes on selection change in listbox1.function listbox1_Callback(hObject, eventdata, handles)% hObject handle to listbox1 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: contents = get(hObject,'String') returns listbox1 contents as cell array% contents{get(hObject,'Value')} returns selected item from listbox1indeks=get(handles.listbox1,'Value');isi=get(handles.listbox1,'string');tampil=isi(indeks);switch indekscase 1set(handles.text4,'string',tampil);set(handles.text8,'string',tampil);case 2set(handles.text4,'string',tampil);set(handles.text8,'string',tampil);case 3set(handles.text4,'string',tampil);set(handles.text8,'string',tampil);case 4set(handles.text4,'string',tampil);set(handles.text8,'string',tampil);case 5set(handles.text4,'string',tampil);set(handles.text8,'string',tampil);case 6set(handles.text4,'string',tampil);set(handles.text8,'string',tampil);case 7set(handles.text4,'string',tampil);set(handles.text8,'string',tampil);case 8set(handles.text4,'string',tampil);set(handles.text8,'string',tampil);case 9set(handles.text4,'string',tampil);set(handles.text8,'string',tampil);case 10set(handles.text4,'string',tampil);set(handles.text8,'string',tampil);case 11set(handles.text4,'string',tampil);set(handles.text8,'string',tampil);case 12set(handles.text4,'string',tampil);set(handles.text8,'string',tampil);end% --- Executes during object creation, after setting all properties.function listbox1_CreateFcn(hObject, eventdata, handles)% hObject handle to listbox1 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: listbox controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endfunction edinput_Callback(hObject, eventdata, handles)% hObject handle to edinput (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of edinput as tomb_lihat% str2double(get(hObject,'String')) returns contents of edinput as a doubleinput = str2double(get(hObject, 'String'));if isnan(input)set(hObject, 'String', 0);Universitas Sumatera Utara


errordlg('X HARUS ANGKA... Coba sekali lagi','Salah');end% --- Executes during object creation, after setting all properties.function edinput_CreateFcn(hObject, eventdata, handles)% hObject handle to edinput (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');end% --- Executes on button press in tomb_hitung.function tomb_hitung_Callback(hObject, eventdata, handles)% hObject handle to tomb_hitung (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)indeks=get(handles.listbox1,'value');x = str2num(get(handles.ed_input,'string'));alfa = x*pi/180;switch indekscase 1y = sin(alfa);case 2y = cos(alfa);case 3y = tan(alfa);case 4y = cot(alfa);case 5y = sec(alfa);case 6y = csc(alfa);case 7y = asin(alfa);case 8y = acos(alfa);case 9y = atan(alfa);case 10y = asec(alfa);case 11y = acot(alfa);case 12y = acsc(alfa);endset(handles.ed_output,'string',y);function ed_output_Callback(hObject, eventdata, handles)% hObject handle to ed_output (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of ed_output as tomb_lihat% str2double(get(hObject,'String')) returns contents of ed_output as a double% --- Executes during object creation, after setting all properties.function ed_output_CreateFcn(hObject, eventdata, handles)% hObject handle to ed_output (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');endUniversitas Sumatera Utara


% --- Executes on button press in tomb_selesai.function tomb_selesai_Callback(hObject, eventdata, handles)% hObject handle to tomb_selesai (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)close;% --- Executes on button press in tomb_reset.function tomb_reset_Callback(hObject, eventdata, handles)% hObject handle to tomb_reset (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)set(handles.ed_input,'String','0');set(handles.ed_output,'String','0');% --- Executes on button press in tomb_lihat.function tomb_lihat_Callback(hObject, eventdata, handles)% hObject handle to tomb_lihat (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)indeks=get(handles.listbox1,'Value');x=[0:30:360];teta=x*pi/180;switch indekscase 1hasil = sin(teta);case 2hasil = cos(teta);case 3hasil = tan(teta);case 4hasil = cot(teta);case 5hasil = sec(teta);case 6hasil = csc(teta);case 7hasil = asin(teta);case 8hasil = acos(teta);case 9hasil = atan(teta);case 10hasil = asec(teta);case 11hasil = acot(teta);case 12hasil = acsc(teta);endy=hasil;axes(handles.axes1);plot(x,y);xlabel('Sudut (derajat)');ylabel('Nilai');grid on;isi=get(handles.listbox1,'string');tampil=isi(indeks);set(handles.text8,'string',tampil);Universitas Sumatera Utara


<strong>Lampiran</strong> H: Fungsi M-file untuk program aplikasi Differensial dan Integralfunction varargout = Differensial_dan_Integral(varargin)% DIFFERENSIAL_DAN_INTEGRAL M-file for Differensial_dan_Integral.fig% DIFFERENSIAL_DAN_INTEGRAL, by itself, creates a new DIFFERENSIAL_DAN_INTEGRAL% or raises the existing% singleton*.%% H = DIFFERENSIAL_DAN_INTEGRAL returns the handle to a new% DIFFERENSIAL_DAN_INTEGRAL or the handle to% the existing singleton*.%% DIFFERENSIAL_DAN_INTEGRAL('CALLBACK',hObject,eventData,handles,...) calls the% local% function named CALLBACK in DIFFERENSIAL_DAN_INTEGRAL.M with the given input% arguments.%% DIFFERENSIAL_DAN_INTEGRAL('Property','Value',...) creates a new% DIFFERENSIAL_DAN_INTEGRAL or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the <strong>GUI</strong> before Differensial_dan_Integral_OpeningFunction gets% called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to Differensial_dan_Integral_OpeningFcn via% varargin.%% *See <strong>GUI</strong> Options on <strong>GUI</strong>DE's Tools menu. Choose "<strong>GUI</strong> allows only one% instance to run (singleton)".%% See also: <strong>GUI</strong>DE, <strong>GUI</strong>DATA, <strong>GUI</strong>HANDLES% Edit the above text to modify the response to help Differensial_dan_Integral% Last Modified by <strong>GUI</strong>DE v2.5 30-Aug-2007 23:12:28% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @Differensial_dan_Integral_OpeningFcn, ...'gui_OutputFcn', @Differensial_dan_Integral_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});elsegui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before Differensial_dan_Integral is made visible.function Differensial_dan_Integral_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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% varargin command line arguments to Differensial_dan_Integral (see VARARGIN)% Choose default command line output for Differensial_dan_Integralhandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes Differensial_dan_Integral wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = Differensial_dan_Integral_OutputFcn(hObject, eventdata, handles)% varargout cell array for returning output args (see VARARGOUT);% hObject handle to figureUniversitas Sumatera Utara


% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Get default command line output from handles structurevarargout{1} = handles.output;function edit1_Callback(hObject, eventdata, handles)% hObject handle to edit1 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of 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 <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');end% --- Executes on button press in pushbutton1.function pushbutton1_Callback(hObject, eventdata, handles)% hObject handle to pushbutton1 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)syms x;y=get(handles.edit1,'string');hasil=diff(y);out=char(hasil);set(handles.edit2,'string',out);% --- 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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)syms x;y=get(handles.edit1,'string');hasil=int(y);out=char(hasil);set(handles.edit2,'string',out);function edit2_Callback(hObject, eventdata, handles)% hObject handle to edit2 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Hints: get(hObject,'String') returns contents of edit2 as text% str2double(get(hObject,'String')) returns contents of edit2 as a double% --- 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 <strong>MATLAB</strong>% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'),get(0,'default<strong>Uicontrol</strong>BackgroundColor'))set(hObject,'BackgroundColor','white');end% --- Executes on button press in pushbutton3.function pushbutton3_Callback(hObject, eventdata, handles)% hObject handle to pushbutton3 (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)Universitas Sumatera Utara


close;% --- 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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)set(handles.edit1,'string','');set(handles.edit2,'string','');% --------------------------------------------------------------------function Pandu_Callback(hObject, eventdata, handles)% hObject handle to Pandu (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% --------------------------------------------------------------------function Numeric_Callback(hObject, eventdata, handles)% hObject handle to Numeric (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)fig1=openfig('PanduTrigo.fig');handles=guihandles(fig1);guidata(fig1,handles);% --------------------------------------------------------------------function Trigonometri_Callback(hObject, eventdata, handles)% hObject handle to Trigonometri (see GCBO)% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)fig1=openfig('PanduFTrigo.fig');handles=guihandles(fig1);guidata(fig1,handles);Universitas Sumatera Utara


<strong>Lampiran</strong> I: Fungsi M-file untuk program aplikasi Petunjuk PemakaianTampilan Utamafunction varargout = Petunjuk_Pemakaian_Tampilan_Utama(varargin)% PETUNJUK_PEMAKAIAN_TAMPILAN_UTAMA M-file for Petunjuk_Pemakaian_Tampilan_Utama.fig% PETUNJUK_PEMAKAIAN_TAMPILAN_UTAMA, by itself, creates a new% PETUNJUK_PEMAKAIAN_TAMPILAN_UTAMA or raises the existing% singleton*.%% H = PETUNJUK_PEMAKAIAN_TAMPILAN_UTAMA returns the handle to a new% PETUNJUK_PEMAKAIAN_TAMPILAN_UTAMA or the handle to% the existing singleton*.%% PETUNJUK_PEMAKAIAN_TAMPILAN_UTAMA('CALLBACK',hObject,eventData,handles,...)% calls the local% function named CALLBACK in PETUNJUK_PEMAKAIAN_TAMPILAN_UTAMA.M with the given% input arguments.%% PETUNJUK_PEMAKAIAN_TAMPILAN_UTAMA('Property','Value',...) creates a new% PETUNJUK_PEMAKAIAN_TAMPILAN_UTAMA or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the <strong>GUI</strong> before Petunjuk_Pemakaian_Tampilan_Utama_OpeningFunction% gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to Petunjuk_Pemakaian_Tampilan_Utama_OpeningFcn% via varargin.%% *See <strong>GUI</strong> Options on <strong>GUI</strong>DE's Tools menu. Choose "<strong>GUI</strong> allows only one% instance to run (singleton)".%% See also: <strong>GUI</strong>DE, <strong>GUI</strong>DATA, <strong>GUI</strong>HANDLES% Edit the above text to modify the response to help Petunjuk_Pemakaian_Tampilan_Utama% Last Modified by <strong>GUI</strong>DE v2.5 13-Sep-2007 18:16:53% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @Petunjuk_Pemakaian_Tampilan_Utama_OpeningFcn,...'gui_OutputFcn', @Petunjuk_Pemakaian_Tampilan_Utama_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});elsegui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before Petunjuk_Pemakaian_Tampilan_Utama is made visible.function Petunjuk_Pemakaian_Tampilan_Utama_OpeningFcn(hObject, eventdata, handles,varargin)% This function has no output args, see OutputFcn.% hObject handle to figure% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% varargin command line arguments to Petunjuk_Pemakaian_Tampilan_Utama (seeVARARGIN)% Choose default command line output for Petunjuk_Pemakaian_Tampilan_Utamahandles.output = hObject;% Update handles structureguidata(hObject, handles);Universitas Sumatera Utara


% UIWAIT makes Petunjuk_Pemakaian_Tampilan_Utama wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = Petunjuk_Pemakaian_Tampilan_Utama_OutputFcn(hObject, eventdata,handles)% varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Get default command line output from handles structurevarargout{1} = handles.output;% --- 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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)close;Universitas Sumatera Utara


<strong>Lampiran</strong> J: Fungsi M-file untuk program aplikasi Tentang ProgramTampilan Utamafunction varargout = Tentang_Program_Tampilan_Utama(varargin)% TENTANG_PROGRAM_TAMPILAN_UTAMA M-file for Tentang_Program_Tampilan_Utama.fig% TENTANG_PROGRAM_TAMPILAN_UTAMA, by itself, creates a new% TENTANG_PROGRAM_TAMPILAN_UTAMA or raises the existing% singleton*.%% H = TENTANG_PROGRAM_TAMPILAN_UTAMA returns the handle to a new% TENTANG_PROGRAM_TAMPILAN_UTAMA or the handle to% the existing singleton*.%% TENTANG_PROGRAM_TAMPILAN_UTAMA('CALLBACK',hObject,eventData,handles,...) calls% the local% function named CALLBACK in TENTANG_PROGRAM_TAMPILAN_UTAMA.M with the given% input arguments.%% TENTANG_PROGRAM_TAMPILAN_UTAMA('Property','Value',...) creates a new% TENTANG_PROGRAM_TAMPILAN_UTAMA or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the <strong>GUI</strong> before Tentang_Program_Tampilan_Utama_OpeningFunction gets% called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to Tentang_Program_Tampilan_Utama_OpeningFcn via% varargin.%% *See <strong>GUI</strong> Options on <strong>GUI</strong>DE's Tools menu. Choose "<strong>GUI</strong> allows only one% instance to run (singleton)".%% See also: <strong>GUI</strong>DE, <strong>GUI</strong>DATA, <strong>GUI</strong>HANDLES% Edit the above text to modify the response to help Tentang_Program_Tampilan_Utama% Last Modified by <strong>GUI</strong>DE v2.5 14-Sep-2007 08:11:04% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @Tentang_Program_Tampilan_Utama_OpeningFcn, ...'gui_OutputFcn', @Tentang_Program_Tampilan_Utama_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});elsegui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before Tentang_Program_Tampilan_Utama is made visible.function Tentang_Program_Tampilan_Utama_OpeningFcn(hObject, eventdata, handles,varargin)% This function has no output args, see OutputFcn.% hObject handle to figure% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% varargin command line arguments to Tentang_Program_Tampilan_Utama (see VARARGIN)% Choose default command line output for Tentang_Program_Tampilan_Utamahandles.output = hObject;% Update handles structureguidata(hObject, handles);Universitas Sumatera Utara


% UIWAIT makes Tentang_Program_Tampilan_Utama wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = Tentang_Program_Tampilan_Utama_OutputFcn(hObject, eventdata,handles)% varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Get default command line output from handles structurevarargout{1} = handles.output;% --- 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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)close;Universitas Sumatera Utara


<strong>Lampiran</strong> K: Fungsi M-file untuk program aplikasi Tentang PenulisTampilan Utamafunction varargout = Tentang_Penulis_Tampilan_Utama(varargin)% TENTANG_PENULIS_TAMPILAN_UTAMA M-file for Tentang_Penulis_Tampilan_Utama.fig% TENTANG_PENULIS_TAMPILAN_UTAMA, by itself, creates a new% TENTANG_PENULIS_TAMPILAN_UTAMA or raises the existing% singleton*.%% H = TENTANG_PENULIS_TAMPILAN_UTAMA returns the handle to a new% TENTANG_PENULIS_TAMPILAN_UTAMA or the handle to% the existing singleton*.%% TENTANG_PENULIS_TAMPILAN_UTAMA('CALLBACK',hObject,eventData,handles,...) calls% the local% function named CALLBACK in TENTANG_PENULIS_TAMPILAN_UTAMA.M with the given% input arguments.%% TENTANG_PENULIS_TAMPILAN_UTAMA('Property','Value',...) creates a new% TENTANG_PENULIS_TAMPILAN_UTAMA or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the <strong>GUI</strong> before Tentang_Penulis_Tampilan_Utama_OpeningFunction gets% called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to Tentang_Penulis_Tampilan_Utama_OpeningFcn via% varargin.%% *See <strong>GUI</strong> Options on <strong>GUI</strong>DE's Tools menu. Choose "<strong>GUI</strong> allows only one% instance to run (singleton)".%% See also: <strong>GUI</strong>DE, <strong>GUI</strong>DATA, <strong>GUI</strong>HANDLES% Edit the above text to modify the response to help Tentang_Penulis_Tampilan_Utama% Last Modified by <strong>GUI</strong>DE v2.5 13-Sep-2007 18:48:59% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @Tentang_Penulis_Tampilan_Utama_OpeningFcn, ...'gui_OutputFcn', @Tentang_Penulis_Tampilan_Utama_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});elsegui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before Tentang_Penulis_Tampilan_Utama is made visible.function Tentang_Penulis_Tampilan_Utama_OpeningFcn(hObject, eventdata, handles,varargin)% This function has no output args, see OutputFcn.% hObject handle to figure% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% varargin command line arguments to Tentang_Penulis_Tampilan_Utama (see VARARGIN)% Choose default command line output for Tentang_Penulis_Tampilan_Utamahandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes Tentang_Penulis_Tampilan_Utama wait for user response (see UIRESUME)% uiwait(handles.figure1);Universitas Sumatera Utara


% --- Outputs from this function are returned to the command line.function varargout = Tentang_Penulis_Tampilan_Utama_OutputFcn(hObject, eventdata,handles)% varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Get default command line output from handles structurevarargout{1} = handles.output;% --- 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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)close;Universitas Sumatera Utara


<strong>Lampiran</strong> L: Fungsi M-file untuk program aplikasi Contact Tampilan Utamafunction varargout = Contact_Tampilan_Utama(varargin)% CONTACT_TAMPILAN_UTAMA M-file for Contact_Tampilan_Utama.fig% CONTACT_TAMPILAN_UTAMA, by itself, creates a new CONTACT_TAMPILAN_UTAMA or% raises the existing% singleton*.%% H = CONTACT_TAMPILAN_UTAMA returns the handle to a new CONTACT_TAMPILAN_UTAMA% or the handle to% the existing singleton*.%% CONTACT_TAMPILAN_UTAMA('CALLBACK',hObject,eventData,handles,...) calls the% local% function named CALLBACK in CONTACT_TAMPILAN_UTAMA.M with the given input% arguments.%% CONTACT_TAMPILAN_UTAMA('Property','Value',...) creates a new% CONTACT_TAMPILAN_UTAMA or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the <strong>GUI</strong> before Contact_Tampilan_Utama_OpeningFunction gets called.% An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to Contact_Tampilan_Utama_OpeningFcn via varargin.%% *See <strong>GUI</strong> Options on <strong>GUI</strong>DE's Tools menu. Choose "<strong>GUI</strong> allows only one% instance to run (singleton)".%% See also: <strong>GUI</strong>DE, <strong>GUI</strong>DATA, <strong>GUI</strong>HANDLES% Edit the above text to modify the response to help Contact_Tampilan_Utama% Last Modified by <strong>GUI</strong>DE v2.5 13-Sep-2007 18:48:59% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @Contact_Tampilan_Utama_OpeningFcn, ...'gui_OutputFcn', @Contact_Tampilan_Utama_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});elsegui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before Contact_Tampilan_Utama is made visible.function Contact_Tampilan_Utama_OpeningFcn(hObject, eventdata, handles, varargin)% This function has no output args, see OutputFcn.% hObject handle to figure% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% varargin command line arguments to Contact_Tampilan_Utama (see VARARGIN)% Choose default command line output for Contact_Tampilan_Utamahandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes Contact_Tampilan_Utama wait for user response (see UIRESUME)% uiwait(handles.figure1);Universitas Sumatera Utara


% --- Outputs from this function are returned to the command line.function varargout = Contact_Tampilan_Utama_OutputFcn(hObject, eventdata, handles)% varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Get default command line output from handles structurevarargout{1} = handles.output;% --- 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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)close;Universitas Sumatera Utara


<strong>Lampiran</strong> M: Fungsi M-file untuk program aplikasi Petunjuk PemakaianMenu Pilihanfunction varargout = Petunjuk_Pemakaian_menu_Pilihan(varargin)% PETUNJUK_PEMAKAIAN_MENU_PILIHAN M-file for Petunjuk_Pemakaian_menu_Pilihan.fig% PETUNJUK_PEMAKAIAN_MENU_PILIHAN, by itself, creates a new %PETUNJUK_PEMAKAIAN_MENU_PILIHAN or raises the existing% singleton*.%% H = PETUNJUK_PEMAKAIAN_MENU_PILIHAN returns the handle to a new %%PETUNJUK_PEMAKAIAN_MENU_PILIHAN or the handle to% the existing singleton*.%% PETUNJUK_PEMAKAIAN_MENU_PILIHAN('CALLBACK',hObject,eventData,handles,...) calls% the local% function named CALLBACK in PETUNJUK_PEMAKAIAN_MENU_PILIHAN.M with the given %input arguments.%% PETUNJUK_PEMAKAIAN_MENU_PILIHAN('Property','Value',...) creates a new %PETUNJUK_PEMAKAIAN_MENU_PILIHAN or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the <strong>GUI</strong> before Petunjuk_Pemakaian_menu_Pilihan_OpeningFunction gets% called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to Petunjuk_Pemakaian_menu_Pilihan_OpeningFcn via% varargin.%% *See <strong>GUI</strong> Options on <strong>GUI</strong>DE's Tools menu. Choose "<strong>GUI</strong> allows only one% instance to run (singleton)".%% See also: <strong>GUI</strong>DE, <strong>GUI</strong>DATA, <strong>GUI</strong>HANDLES% Edit the above text to modify the response to help Petunjuk_Pemakaian_menu_Pilihan% Last Modified by <strong>GUI</strong>DE v2.5 14-Sep-2007 23:35:26% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @Petunjuk_Pemakaian_menu_Pilihan_OpeningFcn, ...'gui_OutputFcn', @Petunjuk_Pemakaian_menu_Pilihan_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});elsegui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before Petunjuk_Pemakaian_menu_Pilihan is made visible.function Petunjuk_Pemakaian_menu_Pilihan_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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% varargin command line arguments to Petunjuk_Pemakaian_menu_Pilihan (see VARARGIN)% Choose default command line output for Petunjuk_Pemakaian_menu_Pilihanhandles.output = hObject;% Update handles structureguidata(hObject, handles);Universitas Sumatera Utara


% UIWAIT makes Petunjuk_Pemakaian_menu_Pilihan wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = Petunjuk_Pemakaian_menu_Pilihan_OutputFcn(hObject, eventdata,handles)% varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Get default command line output from handles structurevarargout{1} = handles.output;% --- 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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)close;Universitas Sumatera Utara


<strong>Lampiran</strong> N: Fungsi M-file untuk program aplikasi PetunjukOperasi Dasar Matematikafunction varargout = Petunjuk_Operasi_Dasar_Matematika(varargin)% PETUNJUK_OPERASI_DASAR_MATEMATIKA M-file for Petunjuk_Operasi_Dasar_Matematika.fig% PETUNJUK_OPERASI_DASAR_MATEMATIKA, by itself, creates a new% PETUNJUK_OPERASI_DASAR_MATEMATIKA or raises the existing% singleton*.%% H = PETUNJUK_OPERASI_DASAR_MATEMATIKA returns the handle to a new% PETUNJUK_OPERASI_DASAR_MATEMATIKA or the handle to% the existing singleton*.%% PETUNJUK_OPERASI_DASAR_MATEMATIKA('CALLBACK',hObject,eventData,handles,...)% calls the local% function named CALLBACK in PETUNJUK_OPERASI_DASAR_MATEMATIKA.M with the given% input arguments.%% PETUNJUK_OPERASI_DASAR_MATEMATIKA('Property','Value',...) creates a new% PETUNJUK_OPERASI_DASAR_MATEMATIKA or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the <strong>GUI</strong> before Petunjuk_Operasi_Dasar_Matematika_OpeningFunction% gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to Petunjuk_Operasi_Dasar_Matematika_OpeningFcn% via varargin.%% *See <strong>GUI</strong> Options on <strong>GUI</strong>DE's Tools menu. Choose "<strong>GUI</strong> allows only one% instance to run (singleton)".%% See also: <strong>GUI</strong>DE, <strong>GUI</strong>DATA, <strong>GUI</strong>HANDLES% Edit the above text to modify the response to help Petunjuk_Operasi_Dasar_Matematika% Last Modified by <strong>GUI</strong>DE v2.5 14-Sep-2007 09:29:23% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @Petunjuk_Operasi_Dasar_Matematika_OpeningFcn,...'gui_OutputFcn', @Petunjuk_Operasi_Dasar_Matematika_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});elsegui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before Petunjuk_Operasi_Dasar_Matematika is made visible.function Petunjuk_Operasi_Dasar_Matematika_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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% varargin command line arguments to Petunjuk_Operasi_Dasar_Matematika (seeVARARGIN)% Choose default command line output for Petunjuk_Operasi_Dasar_Matematikahandles.output = hObject;% Update handles structureguidata(hObject, handles);Universitas Sumatera Utara


% UIWAIT makes Petunjuk_Operasi_Dasar_Matematika wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = Petunjuk_Operasi_Dasar_Matematika_OutputFcn(hObject, eventdata,handles)% varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% Get default command line output from handles structurevarargout{1} = handles.output;% --- 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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)close;Universitas Sumatera Utara


<strong>Lampiran</strong> O: Fungsi M-file untuk Panduan Fungsi NumerikPada program aplikasi Differensial dan Integralfunction varargout = PanduTrigo(varargin)% PANDUTRIGO M-file for PanduTrigo.fig% PANDUTRIGO, by itself, creates a new PANDUTRIGO or raises the existing% singleton*.%% H = PANDUTRIGO returns the handle to a new PANDUTRIGO or the handle to% the existing singleton*.%% PANDUTRIGO('CALLBACK',hObject,eventData,handles,...) calls the local% function named CALLBACK in PANDUTRIGO.M with the given input arguments.%% PANDUTRIGO('Property','Value',...) creates a new PANDUTRIGO or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the <strong>GUI</strong> before PanduTrigo_OpeningFunction gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to PanduTrigo_OpeningFcn via varargin.%% *See <strong>GUI</strong> Options on <strong>GUI</strong>DE's Tools menu. Choose "<strong>GUI</strong> allows only one% instance to run (singleton)".%% See also: <strong>GUI</strong>DE, <strong>GUI</strong>DATA, <strong>GUI</strong>HANDLES% Edit the above text to modify the response to help PanduTrigo% Last Modified by <strong>GUI</strong>DE v2.5 30-Aug-2007 22:56:26% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @PanduTrigo_OpeningFcn, ...'gui_OutputFcn', @PanduTrigo_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});elsegui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before PanduTrigo is made visible.function PanduTrigo_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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% varargin command line arguments to PanduTrigo (see VARARGIN)% Choose default command line output for PanduTrigohandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes PanduTrigo wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = PanduTrigo_OutputFcn(hObject, eventdata, handles)% varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)Universitas Sumatera Utara


% Get default command line output from handles structurevarargout{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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)close;Universitas Sumatera Utara


<strong>Lampiran</strong> P: Fungsi M-file untuk Panduan Fungsi TrigonometriPada program aplikasi Differensial dan Integralfunction varargout = PanduFTrigo(varargin)% PANDUFTRIGO M-file for PanduFTrigo.fig% PANDUFTRIGO, by itself, creates a new PANDUFTRIGO or raises the existing% singleton*.%% H = PANDUFTRIGO returns the handle to a new PANDUFTRIGO or the handle to% the existing singleton*.%% PANDUFTRIGO('CALLBACK',hObject,eventData,handles,...) calls the local% function named CALLBACK in PANDUFTRIGO.M with the given input arguments.%% PANDUFTRIGO('Property','Value',...) creates a new PANDUFTRIGO or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the <strong>GUI</strong> before PanduFTrigo_OpeningFunction gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to PanduFTrigo_OpeningFcn via varargin.%% *See <strong>GUI</strong> Options on <strong>GUI</strong>DE's Tools menu. Choose "<strong>GUI</strong> allows only one% instance to run (singleton)".%% See also: <strong>GUI</strong>DE, <strong>GUI</strong>DATA, <strong>GUI</strong>HANDLES% Edit the above text to modify the response to help PanduFTrigo% Last Modified by <strong>GUI</strong>DE v2.5 30-Aug-2007 23:34:40% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @PanduFTrigo_OpeningFcn, ...'gui_OutputFcn', @PanduFTrigo_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});elsegui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before PanduFTrigo is made visible.function PanduFTrigo_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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)% varargin command line arguments to PanduFTrigo (see VARARGIN)% Choose default command line output for PanduFTrigohandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes PanduFTrigo wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = PanduFTrigo_OutputFcn(hObject, eventdata, handles)% varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)Universitas Sumatera Utara


% Get default command line output from handles structurevarargout{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 <strong>MATLAB</strong>% handles structure with handles and user data (see <strong>GUI</strong>DATA)close;Universitas Sumatera Utara

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

Saved successfully!

Ooh no, something went wrong!