fork download
  1. m=4;
  2. n=4;
  3. for i=1:m
  4. A(i,:)=(1:n).^i
  5. end
  6.  
Success #stdin #stdout 0.1s 45936KB
stdin
Standard input is empty
stdout
A =

   1   2   3   4

A =

    1    2    3    4
    1    4    9   16

A =

    1    2    3    4
    1    4    9   16
    1    8   27   64

A =

     1     2     3     4
     1     4     9    16
     1     8    27    64
     1    16    81   256