Matlab repmat into long single dismension array? : <p>I'm trying to take: </p>

<pre><code>a = [1 2 3]  
</code></pre>

<p>and repeat it 5 times to get:  </p>

<pre><code>b = [1 2 3 1 2 3 1 2 3 1 2 3 1 2 3]  
</code></pre>

<p>but when I try:  </p>

<pre><code>b = repmat(a, 5, 1)  
</code></pre>

<p>instead I get:  </p>

<pre><code> b =

 1     2     3
 1     2     3
 1     2     3
 1     2     3
 1     2     3
</code></pre>

<p>I could probably do it with a for loop but I'd like to do it correctly if possible. Any suggestions? Thanks in advance</p>
