This uses a list of 5000 world cities from the GeoNames data set. Currently, it returns the name of the city with the closest latitude and longitude. An improvement that would better handle high latitude cases would use ground distance.
Richard Moore (2023). CityName (https://www.mathworks.com/matlabcentral/fileexchange/56878-cityname), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!