%% Set the Filter Order and Cutoff Frequency Using setspecs
% Construct a lowpass filter with specifications for the filter order and cutoff frequency (-6 dB). Use setspecs after construction to set the values of the filter order and cutoff frequency. Display the values in the MATLAB® command window.

D = fdesign.lowpass('N,Fc');
setspecs(D,10,0.2);

%

D.FilterOrder

%

D.Fcutoff

% Copyright 2012 The MathWorks, Inc.