%DEMO_JELFS2011 Binaural speech intelligibility advantage
%
% DEMO_JELFS2011 will plot the output of the
% jelfs2011 binaural speech intelligibility advantage model for a
% target azimuth angle of 0 deg. The masker position will move over a
% full circle in the horizontal plane, and the output is visualized on
% a polar plot. The KEMAR HRTF dataset is used.
%
%
% See also: jelfs2011, culling2005bmld
%
% Url: http://amtoolbox.sourceforge.net/data/amt-test/htdocs/amt-0.9.8/doc/demos/demo_jelfs2011.php
% Copyright (C) 2009-2015 Piotr Majdak and Peter L. Søndergaard.
% This file is part of AMToolbox version 0.9.8
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
target_azim=0;
database='kemar';
step = 5;
n_op = 360/step+1;
op = zeros(n_op,3);
angles = (0:step:360)'*pi/180;
for direction_num = 1:n_op
op(direction_num,:) = jelfs2011({target_azim, database}, ...
{(direction_num-1)*step, database});
end
polar([angles angles angles], op);