Path: news.mathworks.com!not-for-mail
From: "Freda " <fredawerdiger@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: counting dots
Date: Sun, 18 Jan 2009 05:56:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <gkug9i$2b4$1@fred.mathworks.com>
Reply-To: "Freda " <fredawerdiger@hotmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1232258162 2404 172.30.248.35 (18 Jan 2009 05:56:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 18 Jan 2009 05:56:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1497428
Xref: news.mathworks.com comp.soft-sys.matlab:512281


Take this plot of complex numbers:

one=rand(128);
two=rand(128).*pi;
comp=one.*exp(i.*two);
re=real(comp);
im=imag(comp);
plot(re,im,'k.','MarkerSize',4)

How do i find out the number of dots in a given section?
ie, counting dots.