view test/octave.test/matrix/rot90-1.m @ 4720:e759d01692db ss-2-1-53

[project @ 2004-01-23 04:13:37 by jwe]
author jwe
date Fri, 23 Jan 2004 04:13:37 +0000
parents 1aeffa048808
children
line wrap: on
line source

x1 = [1, 2;
      3, 4];
x2 = [2, 4;
      1, 3];
x3 = [4, 3;
      2, 1];
x4 = [3, 1;
      4, 2];

(rot90 (x1)== x2 && rot90 (x1, 2) == x3 && rot90 (x1, 3) == x4
 && rot90 (x1, 4) == x1 && rot90 (x1, 5) == x2 && rot90 (x1, -1) == x4)