Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: vectorization problem part II
Date: Sat, 21 Nov 2009 15:55:07 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 27
Message-ID: <he92gq$bqh$1@fred.mathworks.com>
References: <he8vf7$57i$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1258818907 12113 172.30.248.38 (21 Nov 2009 15:55:07 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 21 Nov 2009 15:55:07 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:586881


>> a=[5 1
5 3
5 2
6 2.5
6 2.1
6 2.9
7 8
7 9
7 1];

>> sortrows(a)

ans =

    5.0000    1.0000
    5.0000    2.0000
    5.0000    3.0000
    6.0000    2.1000
    6.0000    2.5000
    6.0000    2.9000
    7.0000    1.0000
    7.0000    8.0000
    7.0000    9.0000

Seems working fine to me

Bruno