
4 Filter Design with the FDATool GUI
4-18
F = fvtool(Hd,'Analysis','magnitude') % Open FVTool with
% magnitude display
set(F,'FrequencyScale','Log') % Change to log scale
This produces the same display as step 5 of “Viewing the Filter in FVTool” on page
4-10 above.
5
Now using the MATLAB command line, create some discrete white Gaussian noise
data, which you can then filter using the filter bank.
rand; % Initialize random number generator
Nx = 100000; % Number of noise data points
xw = randn(Nx,1); % Create white noise
for i=1:10,
yw(:,i)=filter(Hd(i),xw); % Filter the white noise through
end % the entire filter bank.
% (:,i) means all rows of column i
6
Plot the filtered data.
plot(yw)
Komentarze do niniejszej Instrukcji