kmperdeg
Versión 1.0.0 (1,71 KB) por
Gregory Pelletier
Calculate the distance in kilometers per degree of longitude or latitude for any location
This function calculates the distance in kilometers per degree of longitude or latitude for any location. This quantity can be used as the conversion factor to convert between distances in kilometers and distances in degrees of longitude or latitude for any location of interest.
INPUT
phi = degrees of latitude at the location of interest (-90 to 90 deg N)
OUTPUT
dlon = distance in kilometers per degree of longitute at phi
dlat = distance in kilometers per degree of latitute at phi
example use:
>> phi = [0 15 30 45 60 75 90]';
>> [dlon_km dlat_km] = kmperdeg(phi)
phi =
0
15
30
45
60
75
90
dlon_km =
111.3195
107.5505
96.4863
78.8468
55.8000
28.9020
0.0000
dlat_km =
110.5743
110.6487
110.8525
111.1318
111.4123
111.6184
111.6940
Citar como
Gregory Pelletier (2024). kmperdeg (https://www.mathworks.com/matlabcentral/fileexchange/117965-kmperdeg), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2022b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0 |