Add coordinate points (latitude and longitude) on a figure

3 次查看(过去 30 天)
Hi, I have the coordinates of some climate stations over a country in the coordinates.mat. The 3rd and 4th column of coordinates.mat represents latitude and longitude of each station. I need to show the locations of stations on the figure to understand the distribution of stations over the country.
here is the code that creates the country figure. NB: The borders function is taken from the MATLAB File Exchange
borders('Iran Islamic Republic of') % border is a 3rd party code from matlab file exchange
grid on
ax.GridLineStyle = '-';
% Modify the X and Y ticks positions
xticks(44:.5:65);
yticks(25:.5:40);
I attached coordinates.mat
Thank you very much

采纳的回答

Adam Danz
Adam Danz 2020-1-17
编辑:Adam Danz 2020-1-17
hold on
plot(coordinates.lon, coordinates.lat, 'kx')
xlabel('Longitude')
ylabel('Latitude')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Axis Labels 的更多信息

标签

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by