Trojan Asteroids Simulation
Simulation of Trojan Asteroids of a Binary System
The 3D display is made in inertial frame or rotating frame linked to the binary system
Modify the parameters 'm1/m2/r12' in 'simTrojanInit.m' in order to change the binary system ( by default Sun / Jupiter )
Modify the parameter 'np' in the block 'initialization' in order Increase/decrease the number of asteroids ( by default 20 )
Modify the parameter 'n' in 'plot3D.m' in order to get remanent trajectories (set it to 50 or more )
Reference : https://en.wikipedia.org/wiki/Trojan_(celestial_body)
Cite As
p fontaine (2026). Trojan Asteroids Simulation (https://uk.mathworks.com/matlabcentral/fileexchange/69845-trojan-asteroids-simulation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
