Octave / Matlab: Extend a vector making it repeat itself?

The function you’re looking for is repmat().

v10 = repmat(v, 1, 5)

Leave a Comment