Thursday, 31 March 2016

matlab - Converting frequency from textrmHz to radians-per-sample


In MATLAB I have to pass cut-off frequency for designing a filter. But this Cut-off frequency is in radians-per-sample. How do I convert my analog Cut off frequency in Hz, into the required radians-per-sample for MATLAB?



Answer



Problems like these are best attacked using some dimensional analysis:


f[rad/samples]=f[cycles/sec]secsamplesradcycle



f[rad/samples]=f[cycles/sec]2πfs


where fs is the sample rate in Hz.


No comments:

Post a Comment

readings - Appending 内 to a company name is read ない or うち?

For example, if I say マイクロソフト内のパートナーシップは強いです, is the 内 here read as うち or ない? Answer 「内」 in the form: 「Proper Noun + 内」 is always read 「ない...