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$>
References: <isp2hq$ot$> <> <isqrpo$r95$> <isqtkd$3em$> <isr361$k4s$> <isr504$ps7$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1307647746 2586 (9 Jun 2011 19:29:06 GMT)
NNTP-Posting-Date: Thu, 9 Jun 2011 19:29:06 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: 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