Visualise direction 3D vector defined by two angles
3 views (last 30 days)
Show older comments
I'm an almost complete MatLab novice, and would like to visualise in 3D the direction of a vector defined by two angles. Specifically, I have (1) a 'frontal' plane angle (in degrees- as if looking from the front), where 0 degrees is along the conventional x-axis, positive angle is defined in the clockwise direction, and (2) a 'horizontal' plane angle (in degrees- as if looking from above), where 0 degrees is again along the x-axis, positive angle defined in the clockwise direction such that +90 is orthogonal to the frontal plane.
I have been trying to write a basic script that will show an arrow from the origin to the direction of the vector (magnitude is not important)- I suspect it is trivial but I have been failing!
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Dates and Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!