Professional Documents
Culture Documents
Tugas 5 Praktikum Pengolahan Sinyal Digital
Tugas 5 Praktikum Pengolahan Sinyal Digital
NIM : 1167070058
KELAS : TE-6B2
WAKTU : 12.40-14.00
TEKNIK ELEKTRO
2019
TUGAS 5
function frek_Callback(hObject,
eventdata, handles)
% hObject handle to frek (see GCBO)
% eventdata reserved - to be defined
in a future version of MATLAB
% handles structure with handles and
user data (see GUIDATA)
6. 440 hz
4. 349 Hz
7. 494 Hz
5. 392 Hz
8. 523 Hz
Percobaan 2 'gui_OpeningFcn',
@RizalM_Modul32_OpeningFcn, ...
'gui_OutputFcn',
Buatlah tampilan GUI pembangkitan sinyal @RizalM_Modul32_OutputFcn, ...
suara untuk frekuensi c=262, d=294, e=330, 'gui_LayoutFcn', []
f=349, g=392, a=440, b=494 dan c1=523 hz , ...
'gui_Callback',
[]);
Jawaban if nargin && ischar(varargin{1})
function varargout = gui_State.gui_Callback =
RizalM_Modul32(varargin) str2func(varargin{1});
% RIZALM_MODUL32 MATLAB code for end
RizalM_Modul32.fig
% RIZALM_MODUL32, by itself,
creates a new RIZALM_MODUL32 or raises if nargout
the existing [varargout{1:nargout}] =
% singleton*. gui_mainfcn(gui_State, varargin{:});
% else
% H = RIZALM_MODUL32 returns the gui_mainfcn(gui_State,
handle to a new RIZALM_MODUL32 or the varargin{:});
handle to end
% the existing singleton*. % End initialization code - DO NOT EDIT
%
%
RIZALM_MODUL32('CALLBACK',hObject,event % --- Executes just before
Data,handles,...) calls the local RizalM_Modul32 is made visible.
% function named CALLBACK in function
RIZALM_MODUL32.M with the given input RizalM_Modul32_OpeningFcn(hObject,
arguments. eventdata, handles, varargin)
% % This function has no output args, see
% OutputFcn.
RIZALM_MODUL32('Property','Value',...) % hObject handle to figure
creates a new RIZALM_MODUL32 or raises % eventdata reserved - to be defined
the in a future version of MATLAB
% existing singleton*. Starting % handles structure with handles and
from the left, property value pairs are user data (see GUIDATA)
% applied to the GUI before % varargin command line arguments to
RizalM_Modul32_OpeningFcn gets called. RizalM_Modul32 (see VARARGIN)
An
% unrecognized property name or % Choose default command line output
invalid value makes property for RizalM_Modul32
application handles.output = hObject;
% stop. All inputs are passed to
RizalM_Modul32_OpeningFcn via varargin. % Update handles structure
% guidata(hObject, handles);
% *See GUI Options on GUIDE's
Tools menu. Choose "GUI allows only
one % UIWAIT makes RizalM_Modul32 wait for
% instance to run (singleton)". user response (see UIRESUME)
% % uiwait(handles.figure1);
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the % --- Outputs from this function are
response to help RizalM_Modul32 returned to the command line.
function varargout =
% Last Modified by GUIDE v2.5 09-May- RizalM_Modul32_OutputFcn(hObject,
2019 14:29:33 eventdata, handles)
% varargout cell array for returning
output args (see VARARGOUT);
% Begin initialization code - DO NOT % hObject handle to figure
EDIT % eventdata reserved - to be defined
gui_Singleton = 1; in a future version of MATLAB
gui_State = struct('gui_Name', % handles structure with handles and
mfilename, ... user data (see GUIDATA)
'gui_Singleton',
gui_Singleton, ...
% Get default command line output from % eventdata reserved - to be defined
handles structure in a future version of MATLAB
varargout{1} = handles.output; % handles structure with handles and
user data (see GUIDATA)
Gambar
1. c
5. g
2. d
6. a
3. e
7. b
8. c1