ParseLatLongStrings

Convert from DD:MM:SS strings to decimal numeric
30 descargas
Actualizado 18 sep 2017

Ver licencia

ParseLatLongStrings - convert from DD:MM:SS strings to decimal numeric
%
% Convert strings representing angles in colon-seperated
% Degree-Minutes-Seconds format to decimal degrees.
%
% Call as:
% [dec_out] = ParseLatLongStrings(flexible_in);
%
% All the following return -20.5:
%
% ParseLatLongStrings('-20:30:00.00')
% ParseLatLongStrings('20:30:00 S')
% ParseLatLongStrings('20:30:00 E')
% ParseLatLongStrings('-20:30:00 e') % not sure if this is ever used...
% ParseLatLongStrings('20:30 s')
% ParseLatLongStrings(-20.5) % ie will return numeric if passed numeric
%
% Cell-array inputs of all the above types are supported, as are
% multi-line character arrays of format:
% ParseLatLongStrings(['20:30 s' ; '30:30 n'])

Citar como

David Rayner (2024). ParseLatLongStrings (https://www.mathworks.com/matlabcentral/fileexchange/64447-parselatlongstrings), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2016b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Data Type Conversion en Help Center y MATLAB Answers.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0

title change