Anda di halaman 1dari 16

LAPJRAN PRJYEK SINYAL DAN SISTEM

ELLIPTIC FILTER





KELJMPJK 22
RIRY RIZKY ARUMDINA (0906632695)
YESSICA RATRI WIGUNA (0906632751)
ZESYARA MELATI AUZRIANI G. (0906512753)




BAB I
TEJRI

SebuuI Iilter eliptik (jugu dIkenuI sebuguI Cuoer Iilter, dInumuI WIIIeIm
Cuuer ) uduIuI pemrosesun sInyuI IIILer dengun menyumukun kedudukun equIrIppIe
buIk dI pussbund muupun sLopbund. JumIuI equIrIppIe duIum bund musIng-musIng
securu Independen dIsesuuIkun, dun LIduk udu IIILer sumu IuIn ugur dupuL memIIIkI
LrunsIsI IebII cepuL duIum keunLungun unLuru pussbund dun sLopbund , nIIuI-nIIuI
LerLenLu rIppIe upukuI yung dIsumukun uLuu LIduk.
KeunLungun durI Iowpuss IIILer eIIpLIk sebuguI IungsI IrekuensI suduL o
dIberIkun oIeI:

dImunu n R uduIuI 347/07 ke IungsI rusIonuI eIIpLIk (kudung-kudung dIkenuI
sebuguI IungsI rusIonuI CIebysIev) dun
o o uduIuI IrekuensI cuLoII
e uduIuI IukLor rIppIe
( uduIuI IukLor seIekLIvILus
NIIuI durI IukLor rIppIe menenLukun rIppIe pussbund, sedungkun kombInusI
IukLor rIppIe dun IukLor seIekLIIILus menenLukun rIppIe sLopbund.
DuIum pussbund, IungsI rusIonuI eIIpLIk bervurIusI unLuru noI dun kesuLuun.
KeunLungun yung demIkIun ukun bervurIusI unLuru 1 dun .
DuIum sLopbund, IungsI rusIonuI eIIpLIk bervurIusI unLuru Luk LerIInggu dun IukLor
dIskrImInusI 3 yung dIdeIInIsIkun sebuguI:

KeunLungun durI sLopbund LersebuL seIInggu ukun bervurIusI unLuru o dun

BerIkuL uduIuI LIpe IIILer dun spesIIIkusIJsyuruL pudu eIIIpLIc IIILer
%ipe Iilter Stopbund dun Pussbund
Condition
Stopbund Pussbund
owpuss Wp < Wn, keduunyu skuIur (Wn , 1) (o , Wp)
HIgIpuss Wp > Wn, keduunyu skuIur (o , Wn) (Wp ,1)
Bundpuss Wn (1) < Wp (1) < Wp (z) < Wn(z) (o,Wn(1)) dun
(Wn(z),1)
(Wp(1), Wp(z))
BundsLop Wp (1) < Wn (1) < Wn (z) < Wp (z) (o, Wp(1)) dun
(Wp(z),1)
(Wn(1), Wn(z))

Pudu IIILer eIIIpLIc InI dIperIukun InpuL duLu berupu orde IIILernyu IuIu rIppIe
pudu pussbund IuIu sLopbund uLLenuuLIon , pussbund Irequency. Lu merupukun InpuL
uLumu unLuk LIpe IIILer Iowpuss dun IIgIpuss. UnLuk IIILer LIpe bundpuss dun
bunssLop muku dIperIukun sLopbund Irequency kurenu seperLI yung kILu keLuIuI
buIwu pudu LIpe LersebuL IrekuensI cuL oII nyu udu duu. KemudIun pudu semuu jenIs
LersebuL dIbuLuIkun InpuL IrekuensI sumpIIng yung nunLInyu dIgunukun unLuk
mendupuLkun normuIIsusI IrekuensInyu.

Purumeter eskripsi
Wp Pussbund corner Irequency (Wp), cuL oII IrekuensI, uduIuI sebuuI
skuIur uLuu vekLor z eIemenL dengun nIIuI unLuru o dun 1, dImunu 1
sesuuI unLuk NyquIsL normuIIzed IrekuensI, n rudIuns per sumpIe
Ws SLopbund corner IrekuensI (Ws), uduIuI skuIur uLuu vekLor z eIemen
dengun nIIuI unLuru o dun 1, dImunu 1 sesuuI unLuk NyquIsL
normuIIzed IrekuensI
Rp Pussbund RIppIe, duIum decIbeI. Rp uduIuI nIIuI muksImum yung
dIperboIeI pudu pusbund Ioss, duIum decIbeI
Rs SLopbund uLLenuuLIon, duIum decIbeI. Rs uduIuI jumIuI decIbeI pudu
sLopbund yung LeruLLenuusI dengun meIIIuL ke pussbund response
Bab II
PRJGRAM
function varargout = coba(varargin)
% CJBA M-file for coba.fig
% CJBA, by itself, creates a new CJBA or raises the existing
% singleton.
%
% H = CJBA returns the handle to a new CJBA or the handle to
% the existing singleton.
%
% CJBA('CALLBACK',hJbject,eventData,handles,...) calls the local
% function named CALLBACK in CJBA.M with the given input arguments.
%
% CJBA('Property','Value',...) creates a new CJBA or raises the
% existing singleton. Starting from the left, property value pairs
are
% applied to the GUI before coba_JpeningFcn gets called. An
% unrecognized property name or invalid value makes property
application
% stop. All inputs are passed to coba_JpeningFcn via varargin.
%
% See GUI Jptions on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help coba

% Last Modified by GUIDE v2.5 04-May-2011 07:23:05

% Begin initialization code - DJ NJT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_JpeningFcn', @coba_JpeningFcn, ...
'gui_JutputFcn', @coba_JutputFcn, ...
'gui_LayoutFcn', , , ...
'gui_Callback', ,);
if nargin && ischar(varargin,1,)
gui_State.gui_Callback = str2func(varargin,1,);
end

if nargout
varargout,1:nargout,, = gui_mainfcn(gui_State, varargin,:,);
else
gui_mainfcn(gui_State, varargin,:,);
end
% End initialization code - DJ NJT EDIT


% --- Executes just before coba is made visible.
function coba_JpeningFcn(hJbject, eventdata, handles, varargin)
% This function has no output args, see JutputFcn.
% hJbject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to coba (see VARARGIN)

% Choose default command line output for coba
handles.output = hJbject;

% Update handles structure
guidata(hJbject, handles);

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


% --- Jutputs from this function are returned to the command line.
function varargout = coba_JutputFcn(hJbject, eventdata, handles)
% varargout cell array for returning output args (see VARARGJUT);
% hJbject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout,1, = handles.output;



function edit1_Callback(hJbject, eventdata, handles)

% hJbject handle to edit1 (see GCBJ)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hJbject,'String') returns contents of edit1 as text
% str2double(get(hJbject,'String')) returns contents of edit1 as a
double
user_string = get(hJbject,'String');




function edit2_Callback(hJbject, eventdata, handles)


% hJbject handle to edit2 (see GCBJ)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

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


% --- Executes during object creation, after setting all properties.
function edit2_CreateFcn(hJbject, eventdata, handles)
% hJbject handle to edit2 (see GCBJ)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called

unLuk ambll daLa lnpuL pada
baglan eotet otJet
% Hint: edit controls usually have a white background on Windows.
% See ISPC and CJMPUTER.
if ispc && isequal(get(hJbject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hJbject,'BackgroundColor','white');
end



function edit3_Callback(hJbject, eventdata, handles)


% hJbject handle to edit3 (see GCBJ)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

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


% --- Executes during object creation, after setting all properties.
function edit3_CreateFcn(hJbject, eventdata, handles)
% hJbject handle to edit3 (see GCBJ)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
% See ISPC and CJMPUTER.
if ispc && isequal(get(hJbject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hJbject,'BackgroundColor','white');
end



function edit4_Callback(hJbject, eventdata, handles)


% hJbject handle to edit4 (see GCBJ)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

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


% --- Executes during object creation, after setting all properties.
function edit4_CreateFcn(hJbject, eventdata, handles)
% hJbject handle to edit4 (see GCBJ)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
% See ISPC and CJMPUTER.
if ispc && isequal(get(hJbject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
unLuk ambll daLa lnpuL pada
baglan eotet tlpple J8
unLuk ambll daLa lnpuL pada
baglan eotet stopbooJ
otteoootloo (dalam d8)
set(hJbject,'BackgroundColor','white');
end



function edit5_Callback(hJbject, eventdata, handles)


% hJbject handle to edit5 (see GCBJ)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

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


% --- Executes during object creation, after setting all properties.
function edit5_CreateFcn(hJbject, eventdata, handles)
% hJbject handle to edit5 (see GCBJ)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
% See ISPC and CJMPUTER.
if ispc && isequal(get(hJbject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hJbject,'BackgroundColor','white');
end


% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hJbject, eventdata, handles)
% hJbject handle to pushbutton1 (see GCBJ)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
select=get(handles.popupmenu1,'Value');

n =str2double(get(handles.edit2,'String'))
Rp =str2double(get(handles.edit3,'String'))
Rs =str2double(get(handles.edit4,'String'))

if select == 2
Wp =str2double(get(handles.edit5,'String'))
z,p,k, = ellip(n,Rp,Rs,Wp,'low');
sos,g, = zp2sos (z,p,k);
Hd= dfilt.df2tsos (sos,g);

h = fvtool (Hd);
set (h, 'analysis', 'freq')

elseif select == 3
Wp =str2double(get(handles.edit5,'String'))
z,p,k, = ellip(n,Rp,Rs,Wp,'high');
sos,g, = zp2sos (z,p,k);
Hd= dfilt.df2tsos (sos,g);

h = fvtool (Hd);
unLuk ambll daLa program ke Cul
pada plllhan Llpe fllLer
unLuk ambll daLa lnpuL pada
baglan eotet possbooJ eJqe
ftepoeocy0 1
9lllhan LCW9
9lllhan PlCP9
lunCl 18nlL8
lunCl 18nlL8
9emunculan graflk
9emunculan graflk
set (h, 'analysis', 'freq')

elseif select == 5

Wn1 =str2double(get(handles.edit5,'String'))
Wn2 =str2double(get(handles.edit6,'String'))
Wn=Wn1 Wn2,;
ftype= 'bandpass';


z,p,k,=ellip(n, Rp, Rs, Wn, ftype);
sos,g,=zp2sos(z,p,k);
Hd=dfilt.df2sos(sos,g);

h = fvtool (Hd);
set (h, 'analysis', 'freq')

elseif select == 4

Wn1 =str2double(get(handles.edit5,'String'))
Wn2 =str2double(get(handles.edit6,'String'))
Wn=Wn1 Wn2,;
ftype= 'stop';


z,p,k,=ellip(n, Rp, Rs, Wn, ftype);
sos,g,=zp2sos(z,p,k);
Hd=dfilt.df2sos(sos,g);

h = fvtool (Hd);
set (h, 'analysis', 'freq')

end

function edit6_Callback(hJbject, eventdata, handles)


% hJbject handle to edit6 (see GCBJ)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

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


% --- Executes during object creation, after setting all properties.
function edit6_CreateFcn(hJbject, eventdata, handles)
% hJbject handle to edit6 (see GCBJ)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
% See ISPC and CJMPUTER.
if ispc && isequal(get(hJbject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hJbject,'BackgroundColor','white');
end
unLuk ambll daLa lnpuL pada
baglan eotet stopbooJ eJqe
ftepoeocy0 1
9lllhan 8nu1C9
9lllhan 8nu9
lunCl 18nlL8
9emunculan graflk
lunCl 18nlL8
9emunculan graflk


% --- Executes on selection change in popupmenu1.
function popupmenu1_Callback(hJbject, eventdata, handles)

% hJbject handle to popupmenu1 (see GCBJ)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: contents = get(hJbject,'String') returns popupmenu1 contents as
cell array
% contents,get(hJbject,'Value'), returns selected item from
popupmenu1


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


% --- If Enable == 'on', executes on mouse press in 5 pixel border.
% --- Jtherwise, executes on mouse press in 5 pixel border or over edit2.
function edit2_ButtonDownFcn(hJbject, eventdata, handles)
% hJbject handle to edit2 (see GCBJ)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

sel_typ = get(gcbf,'SelectionType')
if sel_type == 'normal'
set(hJbject,'String','')
end


% --- Executes during object creation, after setting all properties.
function popupmenu1_CreateFcn(hJbject, eventdata, handles)
% hJbject handle to popupmenu1 (see GCBJ)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows.
% See ISPC and CJMPUTER.
if ispc && isequal(get(hJbject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hJbject,'BackgroundColor','white');
end


,emanggll plllhan select
flltet type yang dldalamnya
LerdapaL 4 Llpe


UnLuk OWPASS TER


UnLuk HGHPASS TER


UnLuk BANDPASS TER

UnLuk BANDSTOP TER














BAB III
PENUTUP
DemIkIunIuI Iuporun InI, penuIIs berIurup Iuporun InI dupuL menjeIuskun upu
suju yung LerLeru pudu progrum IIILer eIIIpLIc. PenuIIs jugu memoIon muuI upubIIu
udu kesuIuIun-kesuIuIun yung LerjudI buIk ILu senguju muupun LIduk senguju. ALus
seguIu dukungunnyu penuIIs mengucupkun LerImu kusII. DuIum progrum InI LerdupuL
beberupu kekurungun dun keIebIIun. BerIkuL penjeIusun keIebIIun dun kekurungun
progrum.
KEKURANGAN
1. Progrum InI Lerkudung error dun LIduk muu menumpIIkun gruIIk ke user
upubIIu menggunukun IIIe copy durI progrum usII.
z. Progrum InI LIduk menyedIukun menu menumpIIkun IungsI LrunsIer (H(jo)),
wuIuupun duIum progrum InI memunIuuLkun IungsI LrunsIer IInggu LerbenLuk
gruIIk.
KEEBHAN
Progrum InI suduI memunIuuLkun GU seIInggu IebII memuduIkun user.

Anda mungkin juga menyukai