Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: find same value
Date: Thu, 9 Jun 2011 19:29:06 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <isr6u2$2gq$1@newscl01ah.mathworks.com>
References: <isp2hq$ot$1@newscl01ah.mathworks.com> <3bc3d24c-d131-41bd-a180-32f439c2f03f@l18g2000yql.googlegroups.com> <isqrpo$r95$1@newscl01ah.mathworks.com> <isqtkd$3em$1@newscl01ah.mathworks.com> <isr361$k4s$1@newscl01ah.mathworks.com> <isr504$ps7$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1307647746 2586 172.30.248.48 (9 Jun 2011 19:29:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 9 Jun 2011 19:29:06 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:731133

  My apologies.  You apparently did give an indirect answer in implying the two 1's were the "same".

  Also I apologize for my two solutions which have misplaced parentheses.  The second solution should be:

 t = any(diff(sort(A(:,1)))==0);

(and a similar correction for the first one.)

Roger Stafford