title: Stata Mata Programming Conformability Error
body: <p>Hi I need help in Stata's Mata programming language for the following Minimum Working Example.</p>
  
  <p>I am trying to insert sub-matrices of dimension (1x200) (generated by a random normal draw) inside a pointer matrix of dimension 600x1 (V matrix).</p>
  
  <pre><code>mata:
  T=600     //number of markets
  K_S=1    //number of variables with stochastic coefficients
  R=200   //number of random draws
  st_matrix("T", T)
  //pointers to the market specific random draws:
  V=J(T,1,NULL)   //   T by 1  0 matrix
  
  for(t=1;t&lt;=T;t++){ 
  V[t]=(rnormal(K_S,R,0,1)) //dimension K_S x R
  }
  end
  </code></pre>
  
  <p>The problem is I am getting a "rnormal():  3200  conformability error"</p>
  
  <p>Could you suggest what I am doing wrong.</p>
  
  <p>Thanks</p>