title: vandermonde matrix matlab confusion
body: <p>I'm trying to construct a <a href="http://en.wikipedia.org/wiki/Vandermonde_matrix" rel="nofollow">vandermonde matrix</a> using matlab.</p>
  
  <p>My input vector is </p>
  
  <pre><code>t = [ 1 2 3 4 ]'
  </code></pre>
  
  <p>My output using the <a href="http://www.mathworks.com/help/matlab/ref/vander.html" rel="nofollow">vander function</a> is:</p>
  
  <pre><code>ans =
  
   1     1     1     1
   8     4     2     1
  27     9     3     1
  64    16     4     1
  </code></pre>
  
  <p>Now if I'm not mistaken the vandermonde matrix of the vector in question should be:</p>
  
  <pre><code>1 1 1 1
  1 2 4 8
  1 3 9 27
  1 4 16 64
  </code></pre>
  
  <p>now I just realized that I can achieve my desired result using something like:</p>
  
  <pre><code>&gt;&gt; fliplr(vander(t))
  
   ans =
  
   1     1     1     1
   1     2     4     8
   1     3     9    27
   1     4    16    64
  </code></pre>
  
  <p>Thanks.</p>