Plotting body coordinate system in Matlab

8 views (last 30 days)
Verena Hahn
Verena Hahn on 11 Dec 2017
Answered: George Abrahams on 14 Dec 2023
Hello! I am working on a multibody system. Every rigid body has its own body coordinate system and I've been looking for a way to plot this coordinate systems. It should also move when the body is moving. Is there a function in Matlab? Couldn't find anything and would be thankful for any advice!! Best wishes Verena :)

Answers (1)

George Abrahams
George Abrahams on 14 Dec 2023
Hi Verena, I'm a few years late, but hopefully this will help somebody in the future.
To plot each rigid body of your system, you could use my plotframe function on File Exchange. When each coordinate system moves, you could update its position with the UpdateFrame name-value argument, so that it animates.

Categories

Find more on Simulation and Analysis 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!