function plot_adapt_coefs(block, ei) %#ok<INUSD>
%  
% Callback function for plotting the current adaptive filtering
% coefficients.  

% Copyright 2009-2014 The MathWorks, Inc.

stemPlot  = get_param(block.BlockHandle,'UserData');

est = block.Dwork(2).Data;
est = block.Dwork(2).Data;
if ishandle(stemPlot)
    set(stemPlot(2),'YData',est);
    drawnow('expose');  
else
   fprintf('Current filtering coef at time %f:', block.CurrentTime);
   disp(est')
end
