Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: sorting and finding the position
Date: Sun, 27 Nov 2011 18:40:09 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <jau069$7f0$1@newscl01ah.mathworks.com>
References: <jatsag$q6d$1@newscl01ah.mathworks.com> <jatvds$5fb$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1322419209 7648 172.30.248.37 (27 Nov 2011 18:40:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 27 Nov 2011 18:40:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:750601

"Roger Stafford" wrote in message <jatvds$5fb$1@newscl01ah.mathworks.com>...
>  [~,p] = max(A(:,c),1);
>  x(p,:)  % <--- Or use fprintf to print these
- - - - - - - -
  Whoops!

 [~,p] = max(A(:,c),1);
 A(p,:)  % <--- Or use fprintf to print these

Roger Stafford