How to make a 2-D colormap with coordinates
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
andres
el 22 de Oct. de 2018
Comentada: andres
el 25 de Oct. de 2018
Hi. I have n points, for each point I have its latitud, longitude and an indicator that take real values (from 0.5 to 2.7). I would like to make a Figure (like a colormap) that shows with colors the value of this indicator for each of these n points. Is that possible? Thanks in advance for any help.
0 comentarios
Respuesta aceptada
Más respuestas (1)
jonas
el 22 de Oct. de 2018
Editada: jonas
el 22 de Oct. de 2018
Use a surface object
surf(lon, lat, z)
The data must be gridded, so you may have grid the data like this
[LON,LAT] = meshgrid(min(lon):max(lon), min(lat) :max(lat))
Z = griddata(lon,lat, z, LON, LAT)
surf(LON, LAT, Z)
2 comentarios
jonas
el 22 de Oct. de 2018
just set the view,
view([0 90])
or use one of the following functions with the same syntax as surf
- pcolor
- imagesc
- contourf
- mesh
Ver también
Categorías
Más información sobre Geographic Plots 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!