22 lines
603 B
Matlab
22 lines
603 B
Matlab
function Hd = DiogoEliseu_TP3_8_final2
|
|
%DIOGOELISEU_TP3_8_FINAL2 Returns a discrete-time filter object.
|
|
|
|
% MATLAB Code
|
|
% Generated by MATLAB(R) 9.8 and Signal Processing Toolbox 8.4.
|
|
% Generated on: 31-Dec-2020 16:39:59
|
|
|
|
% Butterworth Bandpass filter designed using FDESIGN.BANDPASS.
|
|
|
|
% All frequency values are in Hz.
|
|
Fs = 44100; % Sampling Frequency
|
|
|
|
N = 2; % Order
|
|
Fc1 = 2850; % First Cutoff Frequency
|
|
Fc2 = 7150; % Second Cutoff Frequency
|
|
|
|
% Construct an FDESIGN object and call its BUTTER method.
|
|
h = fdesign.bandpass('N,F3dB1,F3dB2', N, Fc1, Fc2, Fs);
|
|
Hd = design(h, 'butter');
|
|
|
|
% [EOF]
|