MATLAB: Plot a unit vector in MATLAB, given its starting point and the orientation about 3 axes

3d plots

I have a point [x y z] and the Euler orientation angles [r p y]. How can I plot a unit vector in MATLAB starting from [x y z] in the orientation of [r p y] ?

Best Answer

At last found a very simple solution.
Converted the euler angles to rotation matrix and rotated to unit vector.
Related Question