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
Post a Comment