This M-File convert the classical latitude/longitude coordinates to the maidenhead locator system, mostly used by the ham-radio operator to describe the transmitter location (QTH).
Yves OESCH (2021). Maidenhead Locator Calculation (https://www.mathworks.com/matlabcentral/fileexchange/3921-maidenhead-locator-calculation), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Very simple
Sorry, I haven't it in English, but the code is very simple.
The section between ======= and ====== at the beginning, is simply a few examples of known locations that i used to check the code, by activating on of them.
The rest of the code is only some simple mathematics and format conversion to get the result.
I have been looking for a simple program to convert LON/LAT to the 6-digit MH square.
Do you have this in English? Thanks!