Hi I wanted to know why I am getting the below error, I am trying to plot edf data in MatLab so decided to use an ellip filter. Here is my code below.
>> fs = 128; % sampling rate in Hz
fmin = 7; % minimum passband frequency in Hz
fmax = 9; % maximum passband frequency in Hz
order = 5; % filter order (the higher the narrower the transition band)
Rs = 20; % stopband attenuation in dB
Rp = 1; % passband ripples in dB
[b,a] = ellip(order, Rp, Rs, [fmin/(fs/2), fmax/(fs/2)]);
However I get an error saying
Undefined function 'ellip' for input arguments of type 'double'.
How can i fix this error?
Best Answer