Code covered by the BSD License  

Highlights from
RF Design and Analysis

from RF Design and Analysis by Jackson Harvey
A collection of functions, scripts, & Simulink models useful for designing and analyzing RF systems

repeat(x, N);
% REPEAT  Upsample a vector by inserting repeated samples
% 
%    [y] = REPEAT (x,N) upsamples x by a factor N using repetition
% 

function [Y] = repeat(x, N);
Y = [];
for i = 1:length(x)
  Y = [Y x(i).*ones(1,N)];
end;

Contact us at files@mathworks.com