Draw a colored error map based on the measurement error
Show older comments
Hello,
I'm evaluating a positioning system. What the image shows is a battery of measurements at different points in a plane (different coordinates). The blue points are each of the positions delivered by the system, and the red cross is the average of those blue points in each coordinate.
This system depends on the position of some beacons so that the position in the centre has less dispersion than in the corners.
I would like that in this image a color map can be made, highlighting the areas with more error and with less error.
How could I do this?
Thank you very much.

6 Comments
dpb
on 26 Jul 2020
I've never tried it--wonder if can overlay a heatmap.
Otherwise, compute the error for each location and modify the color to suit...scaled to the error range.
Alternatively, an interpolated surface fit to the error values...
As usual, if you provided the dataset as an attached .mat file it would make it easier for folks to play with rather than having to also generate a dataset of their own...
raul dorado san segundo
on 26 Jul 2020
Got sidetracked by farm chores, sorry...
hHM=heatmap(reshape(RMSE,6,6));
hHM.CellLabelColor='none';
is kinda' interesting, though.

Unfortunately,
>> hold on
Error using hold (line 54)
Using hold with heatmap is not supported.
>>
threw cold water on that idea directly...and,
>> heatmap(reshape(RMSE,6,6));
Error using heatmap (line 83)
Adding HeatmapChart to axes is not supported. Turn hold off.
>>
doesn't work directly on the original plot. Doesn't mean one couldn't patch it in, though.
Have to run at the moment...
OBTW. I didn't look to see if the RMSE values are in the proper sequence compared to the plotting order used; may need to transpose to put the right RMSE value in the right location if choose to use a heatmap and figure out something else for displaying the scatter...
dpb
on 27 Jul 2020
RMSE(T) = sqrt(mean((aux1(:)-m_aux(:)).^2))
I wonder since the data apparently are all 2D planar observations if shouldn't not include Z data in the RMS measurement as being more accurate representation of the actual measurement discrepancy. As done, all those zeros are going to reduce the computed error noticeably.
Just a thought...
raul dorado san segundo
on 18 Aug 2020
Image Analyst
on 18 Aug 2020
Look into your options with axis:
axis ij % Origin at top left
axis xy % Origin at bottom left
Accepted Answer
More Answers (1)
Image Analyst
on 27 Jul 2020
1 vote
If you want a more continuous heat map, you can use scatteredInterpolant(). I've attaching a demo.
Categories
Find more on Data Distribution Plots 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!
