Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: hide vectors in quiver plot completely
Date: Fri, 6 Nov 2009 10:25:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <hd0ti0$9m5$1@fred.mathworks.com>
References: <hcsn0u$s36$1@fred.mathworks.com> <hcvqkv$8oh$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257503105 9925 172.30.248.37 (6 Nov 2009 10:25:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 6 Nov 2009 10:25:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2029127
Xref: news.mathworks.com comp.soft-sys.matlab:582972


Hi Mohd,

Great, Thanks a lot!
That was exactly what i was looking for...

i implemented it a bit in a different way than you suggested - no for loops --> not that slow!

% get all the valid flow vectors - might add some additional conditions here
ValidIndex = (abs(FlowVectors) ~= 0);  

% plot only valid flow vectors
quiver(GridX(ValidIndex), GridY(ValidIndex), ...
    real(FlowVectors(ValidIndex)), -imag(FlowVectors(ValidIndex)));

than you very much!
fabian