Like Start Strider points out you can manually key in filter parameter in the fvtool GUI, but can also key in all fvtool parameters in a single MATLAB line:
LpFilt = designfilt('lowpassfir', ...
'PassbandFrequency',0.2, ...
'StopbandFrequency',30, ...
'PassbandRipple',0.1, ...
'StopbandAttenuation',44, ...
'SampleRate',100, ...
'DesignMethod','kaiserwin');
figure(1);fvtool(LpFilt)
the following filters test noise through this LPF .
dataIn = rand(1000,1);
dataOut = filter(LpFilt,dataIn);
subplot(2,1,1);plot(dataIn);title('input noise')
subplot(2,1,2);plot(dataOut);title('LPF Kai filtered noise')
.
would it be possible to let us the readers know what book are these exercises from?
.
if you find these lines useful would you please mark my answer as Accepted Answer?
To any other reader, please if you find this answer of any help, please click on the thumbs-up vote link,
thanks in advance for time and attention
John BG
Best Answer