title: How to separate columns in matlab
body: <p>if you have an array from a for loop </p>
  
  <pre><code>for a =1:3;
      for b=1:3;
          for c=1:3;
              disp([a(:) b(:) c(:)])
  
          end
      end
  end
  </code></pre>
  
  <p>and you want to separate each column of the output</p>
  
  <p>to separate each column you need this code: assuming the data stored in 'A' array:</p>
  
  <pre><code>yy = A(:,1)
  yx = A(:,2)
  yz = A(:,3)
  and so on...
  </code></pre>
  
  <p>but what if you don't know the size of your array or if you have m x n array? what is the general code to separate column? thanks</p>