Convert spherical distance from kilometers to radians
How many radians does 1,000 km span on the Earth and on the Moon?
rad = km2rad(1000)
rad = 0.1570
rad = km2rad(1000,'moon')
rad = 0.5754
km— Distance in kilometers
Distance in kilometers, specified as a numeric array.
rad— Distance in radians
Distance in radians, returned as a numeric array.