Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: I would like to show particle positions and velocities
Date: Fri, 30 Jan 2009 14:09:02 +0000 (UTC)
Organization: Max-Planck-Institut
Lines: 7
Message-ID: <glv1lu$bfj$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1233324542 11763 172.30.248.38 (30 Jan 2009 14:09:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 30 Jan 2009 14:09:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1080409
Xref: news.mathworks.com comp.soft-sys.matlab:514964


Hi all, 

I have 4 one-Dimensional arrays x,y,vx,vy representing particle positions and velocities. I show the particle positions with plot(x,y,'*') . Now i am curious how could I plot the velocities as arrows starting from the particles. One method came into my mind is to use arrow.m from our file exchange center and plot arrows after calculating the end of the arrow with vx and vy. I am still thinking whether do we have any other choices? with quiver? 

Any suggestions and comments are welcome. Thank you in advance. 

Jayson