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

4 lines
62 B
Mathematica
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
function S = repeat(s , n)
S = repmat(s , [1,n]) ;
return