How can i show the intensity of my plot on a heat map?
Show older comments
I have two vectors: "point" - which is a 13x2 vector containing a list of x and y coordinates, "averagedistance" - which is the average error of a user's selection when they try and select the 13 coordinates (in "point") on a touchscreen, this is a 13X1 vector.
How can I display a 2d heat map that shows the intensity of this average error made by the user, based on the info. in "averagedistance"? I'd like to plot the coordinates in "point" but the colour of the points depend on the value of "averagedistance".
I've used "scatter3" but that doesn't merge the colours to produce a heat map.
Answers (3)
KSSV
on 12 Mar 2018
Let x,y,z be your data...
dt = delaunayTriangulation(x,y) ; % delaunay triangulation
tri = dt.ConnectivityList ; % nodal connectivity
trisurf(tri,x,y,z)
Alexander Taylor
on 12 Mar 2018
0 votes
2 Comments
KSSV
on 12 Mar 2018
Perfect...now where is data? It can be plotted if data is given.
Alexander Taylor
on 12 Mar 2018
Categories
Find more on Triangulations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!