%% Generalized Butterworth Filter
% Design a generalized Butterworth filter with normalized cutoff frequency 0.2\pi rad/s. Specify a numerator order of 10 and a denominator order of 2. Visualize the frequency response of the filter.

n = 10;
m = 2;
Wn = 0.2;

[b,a] = maxflat(n,m,Wn);
fvtool(b,a)

% Copyright 2015 The MathWorks, Inc.