%% FVTool Figure Handle Commands
% Start FVTool from the command line. Display the magnitude response of a 6th-order elliptic filter. Specify a passband ripple of 3 dB, a stopband attenuation of 50 dB, a sample rate of 1 kHz, and a normalized passband edge of 300 Hz.

[b,a] = ellip(6,3,50,300/500);
h = fvtool(b,a)

%
% Display the phase response of the filter.

h.Analysis = 'phase'

%
% Turn on the plot legend and add text.

legend(h,'Phase plot')

%
% Specify a sample rate of 1 kHz. Display the two-sided centered response.

h.Fs = 1000;
h.FrequencyRange='[-Fs/2, Fs/2)'

%
% View the all the properties of the plot. The properties specific to FVTool are at the end of the list.

get(h)

% Copyright 2012 The MathWorks, Inc.