ParseLatLongStrings

버전 1.0.0.0 (1.86 KB) 작성자: David Rayner
Convert from DD:MM:SS strings to decimal numeric
다운로드 수: 30
업데이트 날짜: 2017/9/18

라이선스 보기

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'])

인용 양식

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

MATLAB 릴리스 호환 정보
개발 환경: R2016b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

title change