title: Matrix to Vector Conversion in Matlab
body: <p>I have a MxN Matrix and would like to convert into a vector MNx1 with all the elements of the row from the Matrix as the elements of the Vector.</p>
  
  <p>I tried using <code>reshape</code> but I was not successful. </p>
  
  <p>Here is the small code snippet and the expected result.</p>
  
  <pre><code>  S=[0     1
       1     0
       1     1
       1     1 ]
  </code></pre>
  
  <p>Expected Result: </p>
  
  <pre><code>S_prime= [ 0 1 1 0 1 1 1 1]
  </code></pre>
  
  <p>P.S: Using a loop and concatenation is not an option, I am sure there is a easy straight forward technique, which I am not aware.</p>
  
  <p>Thanks</p>