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 18:11:06 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 33
Message-ID: <he9afq$fmp$1@fred.mathworks.com>
References: <he8vf7$57i$1@fred.mathworks.com> <he92gq$bqh$1@fred.mathworks.com> <he93ep$91d$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1258827066 16089 172.30.248.37 (21 Nov 2009 18:11:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 21 Nov 2009 18:11:06 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2037365
Xref: news.mathworks.com comp.soft-sys.matlab:586899


The problem was more that the collumns i want to sort are not the first two collumns, but like the 4th en 11 th collumn. I know rearranged the collumns but i bet it's possible in another way as well. 

"Nick Valensi" <G.vaneck@student.tudelft.nl> wrote in message <he93ep$91d$1@fred.mathworks.com>...
> 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