Path: news.mathworks.com!not-for-mail
From: "matias nordin" <matias.nordin@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: particle interaction
Date: Mon, 4 Feb 2008 10:09:08 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <fo6o84$mcu$1@fred.mathworks.com>
Reply-To: "matias nordin" <matias.nordin@gmail.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 1202119748 22942 172.30.248.35 (4 Feb 2008 10:09:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 4 Feb 2008 10:09:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1269242
Xref: news.mathworks.com comp.soft-sys.matlab:449111


Hi everyone!


I would like to distribute N particles on a line (symmetric
boundaries) by a function, say f(x)=sin(x), so that a small
value gives a small spatial distances while a large value
gives a big spatial distance. In example if f(x)= constant,
the spatial distance between all particles is the same. So
f(x) acts as a potential and the particles repell each other.

How to do?

Thanks for reading and helping!

  Matias