HI everyone,

I would like to call values of a matrix in a foreach loop like this:

Code:
 forvalues x in 1(1)38{
  2. forvalues y in 1(1)5{
  3. gen mat_`x'_`y'=(di A[`x',`y'])/2643
  4. }
  5. }
but there is something wrong with syntax.