How to draw a 3D arrow / vector in MATLAB?

I would like to add a few arrows to the 3D surface plot to indicate important directions like this (from povray )

Different colors would be great, and a three-dimensional letter, similar to the letter X in the image, is even larger.

+6
source share
2 answers

The 3D arrow graph function when exchanging MATLAB files actually does this:

Meanwhile, https://ww2.mathworks.cn/matlabcentral/fileexchange/14056-arrow3 appeared, which might be even better, but I did not check this ...

+4
source

I used something similar to your approach, which may be the beginning for you: here is a sample code:

q = [0 1 0 1];    = qnorm ();   x = q (1)/sqrt (1-q (4) * q (4))

x =

 0

y = q (2)/sqrt (1-q (4) * q (4))

y =

1.0000

z = q (3)/sqrt (1-q (4) * q (4))

z =

 0

quiver3 (0, 0, 0, x, y, z)

, , 3D. 3D, , .

+3

All Articles