Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: vectorization problem part II
Date: Sat, 21 Nov 2009 16:11:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 30
Message-ID: <he93ep$91d$1@fred.mathworks.com>
References: <he8vf7$57i$1@fred.mathworks.com> <he92gq$bqh$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1258819865 9261 172.30.248.35 (21 Nov 2009 16:11:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 21 Nov 2009 16:11:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2037365
Xref: news.mathworks.com comp.soft-sys.matlab:586882


Ok, in fact that did work. I just made my example a bit too simple. But after rearranging some collumns i figured it out. 

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <he92gq$bqh$1@fred.mathworks.com>...
> >> 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