How can I draw a moving platform
Show older comments
Hi,
I want to plot in the 3rd spacethe motion of a cuboid (AxBxC) that moves in the x and y axis and can rotate in the z axis. I have an Nx3 matrix, with each column having the x y and theta_z variables for N frames.
Answers (1)
KSSV
on 21 May 2021
0 votes
Define a rotation matrix as shown here: https://en.wikipedia.org/wiki/Rotation_matrix and multiple the coordinates with the matrix.
Categories
Find more on Surface and Mesh Plots 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!