How can I draw a moving platform

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
KSSV on 21 May 2021
Define a rotation matrix as shown here: https://en.wikipedia.org/wiki/Rotation_matrix and multiple the coordinates with the matrix.

Asked:

on 21 May 2021

Answered:

on 21 May 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!