16
$\begingroup$

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 $\textrm{Hz}$, into the required radians-per-sample for MATLAB?

$\endgroup$
2
  • $\begingroup$ Do you know the sample rate? $\endgroup$
    – hotpaw2
    Feb 20, 2013 at 9:46
  • $\begingroup$ yes, lets say Fs $\endgroup$
    – gpuguy
    Feb 20, 2013 at 9:55

1 Answer 1

21
$\begingroup$

Problems like these are best attacked using some dimensional analysis:

$$f_{[\rm rad/samples]} = f_{[\rm cycles/sec]}\cdot \frac{\text{sec}}{\text{samples}}\cdot \frac{\text{rad}}{\text{cycle}}$$

$$f_{[\rm rad/samples]} = f_{[\rm cycles/sec]}\cdot \frac{2\pi}{f_s}$$

where $f_s$ is the sample rate in $\textrm{Hz}$.

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.