Vectors Addition only work with initial (0,0)?

Not sure about efficiency, but perhaps simpler:

P = [p p p]
V = [u v w]
C = repeat([:red,:green,:blue], inner=4)
quiver(P[1,:], P[2,:], quiver=(V[1,:],V[2,:]), c=C)

NB: cannot get rid of warning message related to NaNs inserted by quiver()

1 Like