image thumbnail

EXPO 2011 Signal Processing Workflow Demo Files

by

 

MATLAB EXPO 2011 Signal Processing Workflow Demo Files

filter_fir_dsp.m
%% e IIR fBW^tB^݌v
close all, clear all

%% p[^ݒ
Fs = 1000;				% TvOg [Hz]

%% 

f   = [0 0.4 0.8 1];
a   = [0 1 0];
up  = [0.02 1.02  0.01];
lo  = [0 0.98 0]; % The zeros insure nonnegative zero-phase resp.
n   = 32;
b   = fircls(n,f,a,up,lo);

h = fvtool(b,1);

%% ŏʑtB^݌v
bmp   = firminphase(b);
addfilter(h,bmp,1)
legend(h,'FIR', 'ŏʑtB^')

%% 
close all
clear all
% eof

Contact us