title: convert a matrix to column vector rowwise
body: <p>In Matlab by default convert a matrix to column vector is done column-wise.</p>
  
  <p>Can we do this row-wise.</p>
  
  <pre><code>A = magic(3);
  A =
  
       8     1     6
       3     5     7
       4     9     2
  
  
  column_vector = A(:);
  column_vector =
  
   8
   3
   4
   1
   5
   9
   6
   7
   2
  </code></pre>
  
  <p>% This can be done rowwise indirectly by transpose or reshape</p>
  
  <pre><code>column_vector = reshape(A',1,numel(A))';
  column_vector =
  
   8
   1
   6
   3
   5
   7
   4
   9
   2
  
  
  trA = A';
  
  column_vector = trA(:);
  column_vector =
  
   8
   1
   6
   3
   5
   7
   4
   9
   2
  </code></pre>
  
  <p>Is there a direct way to do this row-wise like A(:)?</p>
  
  <p>Thanks,
  Gopi</p>