function varargout = dspblkrepeat2(action,varargin)
% DSPBLKREPEAT2 DSP Blockset Repeat block helper function.

% Copyright 1995-2000 The MathWorks, Inc.
% $Revision: 1.2 $ $Date: 2000/06/07 15:50:59 $

% Determine string to display in icon
% This represents the sample count parameter
eval_fct = varargin{1};  % evaluated sample count (could be empty if problem occurred)
lit_fct  = varargin{2};   % literal sample count string (exactly what user entered)

if isempty(eval_fct),
   % Problem probably occurred
   fctstr = lit_fct;
else
   % have an evaluated expression
   if ~isnumeric(eval_fct) | prod(size(eval_fct))~=1,
      fctstr = '?';
   else
      fctstr = num2str(eval_fct);
   end
end

fctstr=['Repeat\n' fctstr 'x'];
varargout = {fctstr};
