function varargout = commblkrayleighchan2(block,varargin)
% COMMBLKRAYLEIGHCHAN Rayleigh channel helper function.

% Copyright 1996-2000 The MathWorks, Inc.
% $Revision: 1.2 $ $Date: 2000/05/19 14:24:25 $

% --- Set the normalize gain mode if required
targetBlk = [block '/Multipath Fading Channel'];

if(strcmp(get_param(block,'normGain'),'on'))
   if(strcmp(get_param(targetBlk,'normGain'),'off'))
      set_param(targetBlk,'normGain','on');
   end;
else
   if(strcmp(get_param(targetBlk,'normGain'),'on'))
      set_param(targetBlk,'normGain','off');
   end;
end;
