Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: find same value
Date: Thu, 9 Jun 2011 16:19:04 +0000 (UTC)
Organization: Tadulako University
Lines: 6
Message-ID: <isqrpo$r95$1@newscl01ah.mathworks.com>
References: <isp2hq$ot$1@newscl01ah.mathworks.com> <3bc3d24c-d131-41bd-a180-32f439c2f03f@l18g2000yql.googlegroups.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-04-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1307636344 27941 172.30.248.35 (9 Jun 2011 16:19:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 9 Jun 2011 16:19:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2228514
Xref: news.mathworks.com comp.soft-sys.matlab:731072

ImageAnalyst <imageanalyst@mailinator.com> wrote in message <3bc3d24c-d131-41bd-a180-32f439c2f03f@l18g2000yql.googlegroups.com>...
> How about using hist(), something like
> counts = hist(a(:,1))
> If counts >=2 there are repeats, which you can find with find().

I just wanted to check the data (matrix) if the (:, 1) there is or is not the same value, if it will it will display the message "warndlg"