title: How to build nested array of 1x3 vectors in the n,m posision of 2D matrix in MATLAb?
body: <p>How to build nested array of 1x3 vectors in the (n,m) posision of 2D matrix in a for loop?</p>
  
  <p>And then how to access the n,m vector ?</p>
  
  <p>Is there a better way than below.</p>
  
  <pre><code>  for n =1:2
       for m =1:3
         v = [n,m,n]' % test vector to be stored
         A(3*n-2:3*n,m) = v;% 
        end
    end
  n =2; m=3;
  v = A(3*n-2:3*n,m); % get vector at n,m position
  A
  v
  </code></pre>