MATLAB: Filling an array with the same words.

array

Hello, I would like to fill a 1 to n array with the same word, but I don't want to have to type it all out.
Ex:
[text, text, text, text]
How can I do this? Thank you in advance.

Best Answer

n=10;
repmat(["text"],1,n)