RosettaCodeData/Task/Repeat-a-string/MATLAB/repeat-a-string.m

4 lines
62 B
Matlab

function S = repeat(s , n)
S = repmat(s , [1,n]) ;
return