How to display coordinates of points in "contourf"?
Mostrar comentarios más antiguos
I have three matrices, X, Y, and Z. I am creating a filled contour plot using the command
contourf(X,Y,Z)
How can I display the coordinates of all points in the plot? I can use "Data Cursor" in figure environment to mark coordinates of points individually but this may take a lot of time depending on the number of points.
4 comentarios
jonas
el 6 de Ag. de 2018
What do you mean by displaying coordinates? The coordinates are given by the y- and x-axes and the z-value is given by the colorbar.
Ali Baig
el 6 de Ag. de 2018
jonas
el 6 de Ag. de 2018
Still unclear. Do you want to overlay the contourf with a grid showing all coordinates, like [x1,y1]? All coordinates included?
Ali Baig
el 6 de Ag. de 2018
Respuesta aceptada
Más respuestas (1)
Afshin Aghayan
el 8 de Oct. de 2019
0 votos
you can use this code for displaying any data in the form of [x, y, f(x,y)] or data with coordinate
Categorías
Más información sobre Contour Plots en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!