RosettaCodeData/Task/Repeat-a-string/MATLAB/repeat-a-string.m
2023-07-01 13:44:08 -04:00

3 lines
62 B
Matlab

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