MATLAB: Cutoff frequency for lowpass filter

cutoff frequencyfilterlowpasslowpass filterpowerbw

Hello!
To get the cutoff frequency when using lowpass() function, I used powerbw(x,Fs) function.
Is this correct?
Thanks

Best Answer

Is this correct?
That depends on the signal, and on what you want to do. The powerbw funciton returns the -3 dB frequencies if you request them (see: Bandwidth of Bandlimited Signals). For a lowpass filter, you would likely use the fhi output, if the intent is to use that part of the spectrum, or flo to exclude it.
It is probably as good a method as any of choosing a frequency for a filter. (I characteristically calculate the fft of the signal and then use it to design the filter, however there a definitely other ways.)