Compass Direction Conversion with Matlab

버전 1.0.0 (3.4 KB) 작성자: Hristo Zhivomirov
Compass direction conversion from cardinals to degrees and backward.
다운로드 수: 10
업데이트 날짜: 2024/6/26

라이선스 보기

The present codes are a set of two Matlab functions named “cardinal2deg” and “deg2cardinal”, designed to convert compass directions between cardinals and degrees. The first function allows the user to input cardinal directions (e.g., N, NNE, NE, etc.) and obtain the corresponding degree values (e.g., 0, 22.5, 45, etc.). Conversely, the second function allows conversion from degree values to the corresponding cardinal directions, offering a bidirectional conversion capability. The functions are valuable tools that facilitate the compass direction conversions for geographic data processing applications.
Three examples are given to clarify the usage of the two functions. For convenience, the input and output arguments are given at the beginning of the functions.

인용 양식

Hristo Zhivomirov (2024). Compass Direction Conversion with Matlab (https://www.mathworks.com/matlabcentral/fileexchange/168891-compass-direction-conversion-with-matlab), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2020b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

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