How to use the measure command in filter design
Mostra commenti meno recenti
Hi!
I am trying to use the measure command to store the filter properties in a variable so that i can refer to it for comparison with other filters. Here is my code:
hd = dfilt.dffir(FVr_temp); % designs the filter for the given coefficients
m=measure(hd);
if(m.astop==as)
S_struct.term=1;
end
The m.astop is not working but I did see it being used in some code. I want to access the passband and stop frequencies and attenuations and compare them with given values. How can I do it?
Also if measure cannot be used, then what is the alternate method.
Thanks
Risposte (2)
Honglei Chen
il 12 Set 2013
0 voti
You need to go through the fdesign interface so measure() can work. Otherwise, if you simply specify the filter coefficients, it does not know what the specification is and thus cannot perform the measurements. You can find this info and some examples in the following reference page
HTH
1 Commento
Saumya
il 12 Set 2013
Saumya
il 14 Set 2013
0 voti
1 Commento
Honglei Chen
il 18 Set 2013
compare it to what? If you know the spec, then you can just plug in the expected frequency and see if the response matches what it should be.
Categorie
Scopri di più su Filter Analysis in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!