I am asked to design a digital low pass butterworth filter using MATLAB with the following specs :
- cutoff frequency of 1.5 kHz
- 10 dB stopband attenuation at 3 kHz
- sampling frequency of 8 kHz
I have calculated the order of the filter to be 1.57. As we know we need to ceil this value to ensure that the filter satisfies the specs. However, in matlab I am using
buttord()
This function returns the lowest order which will be one in this case. So how do I return the highest order instead of returning the lowest order ?