Draw a colored error map based on the measurement error
9 views (last 30 days)
Show older comments
raul dorado san segundo
on 26 Jul 2020
Commented: Image Analyst
on 18 Aug 2020
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
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
dpb
on 27 Jul 2020
More than one way to skin a cat... :)
hHM=heatmap(reshape(RMSE,6,6)); % draw the heatmap; fixup some to draw on top later...
hHM.CellLabelColor='none'; % make the HM cell values invisible
hHM.XDisplayLabels=repmat({' '},1,6); % clear HM data labels
hHM.YDisplayLabels=repmat({' '},1,6); % clear HM data labels
hHM.ColorbarVisible='off'; % and forego the colorbar
hAx=axes('Position',hHM.Position,'Color','none'); % create new axes on top transparent so HM shows
hold on % get ready for the plot
arrayfun(@(i) scatter(ESTIMS(:,1,i),ESTIMS(:,2,i),3,'b',"filled"),[1:size(ESTIMS,3)]); % put scatter
...
results in
Can go ahead with the rest of the additions of the red cross, etc., etc., ...
Changing colormap for the heatmap might help some for better contrast, but the idea can be made to work it appears; why TMW chose to not let do it directly is anybody's guess -- again "big brother knows best" syndrome I suppose just couldn't imagine somebody would want to do.
3 Comments
dpb
on 27 Jul 2020
Thanks, IA! :) Did turn out kinda' interesting didn't it?
Seems a good way to present OP's data, I think.
The interpolant idea is an alternative but didn't have time to fiddle further...
More Answers (1)
Image Analyst
on 27 Jul 2020
If you want a more continuous heat map, you can use scatteredInterpolant(). I've attaching a demo.
0 Comments
See Also
Categories
Find more on Colormaps 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!