title: octave vectorize function application
body: <p>For a given (m by n) matrix <code>poly</code> I would like generate its
  lines with the following expression: </p>
  
  <p><code>poly(i, :) = [X(i) X(i)^2 X(i)^3 ...  X(i)^p]</code></p>
  
  <p>I am given a (m by 1) <code>X</code> vector and the value p. 
  My current solution is:</p>
  
  <pre><code>poly(:,1) = X;
  for i = 2:p
      poly(:,i) = X.^i;
  end;
  </code></pre>
  
  <p>My question is: is their any way to further vectorize this?
  I also generated a cell array of functions that could be applied
  to the matrix row by row, but I still had to loop.</p>
  
  <p>TIA</p>