function update_quantizationswitch(hFig)
% UPDATE_QUANTIZATIONSWITCH Update the Quantization switch
%
% Input:
%   hFig   - Handle to the Filter Design GUI figure.

%   Author(s): P. Costa
%   Copyright 1988-2000 The MathWorks, Inc.
%   $Revision: 1.3 $  $Date: 2000/06/13 21:23:51 $ 

ud = get(hFig,'Userdata');

% Cache handle for the "Quantize filter" checkbox.
h_chkbox = ud.h.qswitch.quantizeSwitch;

% Update the checkbox with the quantization flag 
set(h_chkbox,'Value',ud.flags.quantizationswitch);

% Enable or disable quantization parameters based on the quantization switch.
enablequantized(hFig,ud.flags.quantizationswitch);

% [EOF] update_quantizationswitch.m
