view test/octave.test/matrix/sort-1.m @ 5301:9302581b820d ss-2-9-2

[project @ 2005-04-22 17:08:07 by jwe]
author jwe
date Fri, 22 Apr 2005 17:09:11 +0000
parents eeb061f9cdbf
children
line wrap: on
line source

a = [1, 2; 2, 3; 3, 1];
s = [1, 1; 2, 2; 3, 3];
i = [1, 3; 2, 1; 3, 2];
[xs, xi] = sort (a);
sort (a) == s && xs == s && xi == i