I need to apply a butterworth filter. To prove my cutoff frequency I need to do a plot ''residuals vs cutoff frequency'' like in the 2nd sqare of the picture.
residuals come from
So I want to apply a
-butterworth filter
-lowpass
order n=2
cutoff frequency wn= [0,20] Hz
So my doubt is if there is a way to find the residuals by matlab. And then plot them against cutoff frequency.
Any help is huge appreciated.