Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
quiver

Subject: quiver

From: vagrom Jiang

Date: 4 Feb, 2009 19:11:01

Message: 1 of 2

Hallo,
   i need your help. I am going to visualize the optical flow with 'quiver'. But it presents the NaN with dots. How can the results with the value of NaN not be showed?
Much Thanks!
Xin Jiang

Subject: quiver

From: Yuri Geshelin

Date: 4 Feb, 2009 20:48:01

Message: 2 of 2

"vagrom Jiang" <vagrom@mytum.de> wrote in message <gmcp85$ams$1@fred.mathworks.com>...
> Hallo,
> i need your help. I am going to visualize the optical flow with 'quiver'. But it presents the NaN with dots. How can the results with the value of NaN not be showed?
> Much Thanks!
> Xin Jiang

Hi,

remove the NaN elements before the call to quiver, eg

rem_index = find(isnan(U));
U(rem_index) = [ ];
V(rem_index) = [ ];
X(rem_index) = [ ];
Y(rem_index) = [ ];
quiver(X,Y,U,V)

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us