I have given two vectors holding 24 hourly values for wind speed and direction.
I would like to use quiver to plot 24 arrows indicating speed and direction graphically.
I failed with my first tries:
windspeeds = rand(1,24)
winddirections = randi([1 360],1,24)
[x,y] = meshgrid(1:24,1:24)
u= mod(90 - winddirections, 360)
v= mod(90 - winddirections, 360)
u= cos(u) * pi/180
v= sin(u) * pi/180
quiver( cos(u) * pi/180, sin(u) * pi/180, x, y)
Current Result is
I do not yet know how to place these 24 arrows and how to calculate u,v to represent the direction at the given position (time of the day). The quiver doc is rather short. Any hints on how I could proceed.