Specify the mean radius of Earth and the distance from Munich to Bangalore measured along the Earth's surface (in kilometers). Compute the spherical distance between Munich and Bangalore in degrees.
dist = 7194; radEarth = 6371; R = dist/radEarth; D = rad2deg(R)
R—Angle in radians scalar|vector|matrix|multidimensional array
Angle in radians, specified as a scalar, vector, matrix, or multidimensional array. IfRcontains complex elements,rad2degconverts the real and imaginary parts separately.
Data Types:single|double Complex Number Support:Yes
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.