function [X, Y] = genRepeatingSequenceBlockIconData(dbl_rep_seq_t, dbl_rep_seq_y)
%

%   Copyright 2012 The MathWorks, Inc.

if(useDefaultRepeatingSequenceBlockIcon(dbl_rep_seq_y))
    dbl_rep_seq_t = [0 2];
    dbl_rep_seq_y = [0 2];
end

s = round(length(dbl_rep_seq_t)/50);
if s > 0
  pts = [1:s:length(dbl_rep_seq_t)];
  L   = length(pts);
else
  L   = length(dbl_rep_seq_t);
  pts = [1:L];
end

X = reshape(dbl_rep_seq_t(pts),L,1);
Y = reshape(dbl_rep_seq_y(pts),L,1);
disp_period = max(X) - min(X);

X  = repmat(X,1,3) + (ones(L,1)*(disp_period*[0,1,2]));
X = [ X(:); X(end) ];
Y = repmat(Y,1,3);
Y = [ Y(:); Y(1) ];
