%% Compare Class 1 A and ITU-R 468-4 Weighting Filters
% Compare class 1 A weighting and ITU-R 468-4 filters between 0.1 and 12 kHz. Sampling frequency is 44.1 kHz

HawfA = fdesign.audioweighting('WT,Class','A',1,44.1e3);
HawfITUR = fdesign.audioweighting('WT','ITUR4684',44.1e3);

Afilter = design(HawfA,'SystemObject',true);
ITURfilter = design(HawfITUR,'SystemObject',true);

hfvt = fvtool(Afilter,ITURfilter);
axis([0.1 12 -80 20]);
legend(hfvt,'A-weighting','ITU-R 468-4');

% Copyright 2012 The MathWorks, Inc.