fork(1) download
  1. v = [1, 2, 3, 4, 5];
  2. p = 2;
  3. w = v.^p;
  4.  
  5. disp(v);
  6. disp(w);
Success #stdin #stdout 0.17s 65056KB
stdin
Standard input is empty
stdout
   1   2   3   4   5
    1    4    9   16   25