Clear Filters
Clear Filters

scale x,y and z axis to match JPL Database

9 views (last 30 days)
kim
kim on 22 Jul 2024 at 23:31
Answered: Star Strider on 23 Jul 2024 at 0:18
I am using the NASA JPL Databases and learning how to plot the Three-Body Periodic Orbits using ode45 and my own derivate function. I was wondering if anyone knows how to scale the x,y and z axis to fit in with the JPL Databases. https://ssd.jpl.nasa.gov/tools/periodic_orbits.html

Answers (1)

Star Strider
Star Strider on 23 Jul 2024 at 0:18
I’m not certain how to use that site, so I don’t know what the plots look like.
Probably the function that will best do what you want is daspect. It allows you to set the aspecty ratios of the various axes, so for example:
daspect([1 1 1])
is the same as:
axes('equal')
The daspect function allows you to specify their ratios exactly. The arguments to it are not required to be integers.

Community Treasure Hunt

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

Start Hunting!