Watch this Author's files
Very useful!
Does not seem to correctly handle when latitude or longitude is negative. i.e. West and South hemispheres. Using the variable c assigned on line 138, c(12) designates longitude hemisphere as 'E' or 'W' and c(20) latitude hemisphere as 'N' or 'S'.
Contact us at files@mathworks.com