title: How do I Combine two equal sized vectors element wise in MatLab?
body: <p>I have two vectors:</p>
  <pre><code>a = [1 3 5 7 9];
  b = [2 4 6 8 10];
  </code></pre>
  <p>That I need to combine together element wise.  Meaning that I need the first element of vector a, then the first element of vector b, second of a, second of b, and so forth until I get the following:</p>
  <pre><code>combined = [1 2 3 4 5 6 7 8 9 10]
  </code></pre>
  <p>How do I do this within MatLab?</p>
  <h3>Edit</h3>
  <p>I ran a test of the top three answers (Josh, Marc, &amp; Kronos) and compared the time it took to run them.  I ran each 100 times after doing a 10 iteration warmup.  The vectors created were exactly the same size in length (16e+6) and were random values ranging from 1 to 100:</p>
  <pre><code>Test Results
  Test:           Total Time (100 runs):      Avg Time Per Exec:
  Josh B          21.3687                     0.2137
  Marc C          21.4273                     0.2143
  Kronos          31.1897                     0.3119
  </code></pre>
  <p>It appears that both Josh's and Marc's solutions are similar in execution time.</p>