matlab - using quiver with two dimentional array -



i have 2 dimentional array of x,y. first row x adn second row y. trying use quiver on array no success.

if know how plot, great.

thanks!

is asking ?

define 2d array (each column represents components of vector )

myarray = [1 2 3 4; 5 6 7 8]; 

extract coordinates of 4 vectors:

u = myarray(1,:); v = myarray(2,:); 

define origin starting point 4 vectors:

x = zeros(1,4); y = zeros(1,4); 

and call quiver function 2d vectors:

quiver(x,y,u,v) 

Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -