next up previous contents
Next: reshape Up: 行列の成分の並べ変え Previous: fliplr, flipud

rot90

rot90(a,N), a を反時計回りに $90\timesN$ 度回転.
octave> a=[1,2;3,4]
a =

  1  2
  3  4

octave> rot90(a)
ans =

  2  4
  1  3

octave> rot90(a,-1)
ans =

  3  1
  4  2



Toru Sasaki
2001-07-23