Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
Code calculates the minimum distance from input vector of lat/lon points to any coastal point (including major lakes).
Two distance options: great circle distance, which is precise but slow (non-vectorized); mean distance with cos(latitude) weighting, which is less precise but fast.
Also includes option to only return distances less than a threshold value. This greatly increases speed for cases with many input lat/lon points located in a relatively small region of Earth.
Code uses coast.mat data that comes with MATLAB distribution, and it uses vdist function from MATLAB file exchange for great circle calculation (included in this .zip file).
Citar como
Dan Chavas (2026). dist_from_coast.zip (https://la.mathworks.com/matlabcentral/fileexchange/47632-dist_from_coast-zip), MATLAB Central File Exchange. Recuperado .
Agradecimientos
Inspirado por: Vectorized geodetic distance and azimuth on the WGS84 earth ellipsoid
Información general
- Versión 1.2.0.0 (99,7 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
| Versión | Publicado | Notas de la versión | Action |
|---|---|---|---|
| 1.2.0.0 | commented out test plot in file |
||
| 1.1.0.0 | 2014-08-26 : added option to only return distances less than a threshold value. This greatly increases speed for cases with many input lat/lon points located in a relatively small region of Earth. |
||
| 1.0.0.0 |
