PW6 - Fourier Response of basic filter
PW6 - Fourier Response of basic filter
GROUP NO. :
DATE SUBMIT :
PRAC. TOTAL
REPORT
STUDENT ID & NAME : SKILL MARKS
(30%)
(70%) (100%)
(1)NURUL LIDIYA BT MOHD SULAIMAN
08DEU21F1077
(3)
Discussion (10)
Conclusion (5)
References (5)
OBJECTIVES:
At the end of this practical work, students should be able to
1. execute transfer function command to calculate integral function using software (Matlab, Scilab,
Octave Online etc).
2. execute Fourier transform of Continuous-Time and the coefficients using software (Matlab,
Scilab, Octave Online etc).
3. execute Fourier transform of spectrum sine wave using software (Matlab, Scilab, Octave Online
etc).
4. execute Fourier Transform of Discrete-Time given sequences number using software (Matlab,
Scilab, Octave Online etc).
PRACTICAL WORK : 6
Score 1 2 3 4 5
Student 1
Student 2
Score
Aspect Weak Average Satisfactory Good Excellent
Able to write
part of the
Able to write
program
program and Able to write
Write Able to write correctly but
Unable to write gives correct program without
Program program less than three
program output under lecturer’s x5
PRACTICAL SKILL (70%)
Accurate
Accurate statement of the
statement of the results of lab
A statement of
No conclusion A statement of results of the lab indicates
the results of
was included the results is indicates whether results
the lab
or shows little incomplete whether results support
Conclusion indicates
effort and with little support the hypothesis
whether x1
reflection on reflection on hypothesis Possible
results support
the lab the lab Possible sources of error
the hypothesis
sources of error and what was
identified learned from the
lab discussed
References 0 reference 1-2 references 3-4 references 4-5 references >5 references x1
Total 100
EQUIPMENTS : i) Computer
ii) Software (Matlab, Scilab, Octave Online etc)
SAFETY PRECAUTION:
1. Do not plug in external devices (e.g USB thumb drive) without scanning them for
computer viruses.
2. Always back up all your important data files.
PROCEDURES:
% filter-specific parameters
pbr = 10; % chebyshev 1 / elliptic passband ripple (dB)
sba = 40; % chebyshev 2 / elliptic stopband attenuation (dB);
% filter options
% [b,a] = butter(n, fc/(Fs/2)); % Butterworth. fc/(Fs/2) converts
the unit rad/sample
% [b,a] = cheby1(n, pbr, fc/(Fs/2)); % Chebyshev I Filter
% [b,a] = cheby2(n,sba,fc/(Fs/2)); % Chebyshev II Filter
[b,a] = ellip(n,pbr,sba,fc/(Fs/2)); % Elliptic Filter
f = Fs*(0:(n/2))/n;
Pnoisy = abs(Ynoisy/n);
Pcleaned = abs(Ycleaned/n);
% filter-specific parameters
pbr = 10; % chebyshev 1 / elliptic passband ripple (dB)
sba = 40; % chebyshev 2 / elliptic stopband attenuation (dB);
% filter options
%[b,a] = butter(n, fc/(Fs/2), 'high'); % Butterworth. fc/(Fs/2)
converts the unit rad/sample
%[b,a] = cheby1(n, pbr, fc/(Fs/2), 'high'); % Chebyshev I Filter
%[b,a] = cheby2(n,sba,fc/(Fs/2), 'high'); % Chebyshev II Filter
[b,a] = ellip(n,pbr,sba,fc/(Fs/2), 'high'); % Elliptic Filter
f = Fs*(0:(n/2))/n;
Pnoisy = abs(Ynoisy/n);
Pcleaned = abs(Ycleaned/n);
DISCUSSION
REFERENCES