Specify the spherical distance between Munich and Bangalore in degrees and the mean radius of Earth in kilometers. Compute the distance (measured along the Earth's surface) between Munich and Bangalore, in kilometers.
D = 64.7; radEarth = 6371; R = deg2rad(D); dist = radEarth*R
D—Angle in degrees scalar|vector|matrix|multidimensional array
Angle in degrees, specified as a scalar, vector, matrix, or multidimensional array. IfDcontains complex elements,deg2radconverts 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.