How to mark labels on sampling points
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dear all,
I have a data set with latitude, longitude and sample numeber. I can plot lat and lon in map. My question is how to display sample number on the plot. I will add data set and sample number for your reference
0 comentarios
Respuestas (1)
Star Strider
el 8 de Ag. de 2022
I have no idea what you want to plot.
Try this —
T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1091375/locations.csv')
figure
plot(T1{:,2}, T1{:,4},'.-')
txtstr = compose('%3d',T1{:,1}); % First Column Cell Array Of Strings
text(T1{:,2}, T1{:,4},txtstr)
Make appropriate changes to get the desired result.
.
2 comentarios
Star Strider
el 11 de Ag. de 2022
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.
Ver también
Categorías
Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!