Method Reference: string.repmat

string: B = repmat (A, n)
string: B = repmat (A, d1, …, dN)
string: B = repmat (A, dimvec)

Repeat copies of a string array.

B = repmat (A, n) returns a string array B containing n copies of the input string array A along every dimension of A.

B = repmat (A, d1, …, dN) returns an array B containing copies of A along the dimensions specified by the list of scalar integer values d1, …, dN, which specify how many copies of A are made in each dimension.

B = repmat (A, dimvec) is equivalent to the previous syntax with dimvec = [d1, …, dN].

Source Code: string