I'm trying to take:
a = [1 2 3] and repeat it 5 times to get:
b = [1 2 3 1 2 3 1 2 3 1 2 3 1 2 3] but when I try:
b = repmat(a, 5, 1) instead I get:
b = 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 I could probably do it with a for loop but I'd like to do it correctly if possible. Any suggestions? Thanks in advance
MATLAB repeat vector stackoverflow" on Google, the duplicate I've marked was the first link I've found.