Draw a colored error map based on the measurement error

11 views (last 30 days)
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
raul dorado san segundo
raul dorado san segundo on 18 Aug 2020
Hello again,
I have a problem with this solution. Since the Y-axis starts at the bottom left with the number 6 and ends with 1 (I'm talking about the indexes).
This is confusing since I am representing an error in coordinates and therefore I need the order to be inverse, that is, starting at 1 (bottom left) and going up to 6.
How can I solve this?
Thank you very much.
Image Analyst
Image Analyst on 18 Aug 2020
Look into your options with axis:
axis ij % Origin at top left
axis xy % Origin at bottom left

Sign in to comment.

Accepted Answer

dpb
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
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...

Sign in to comment.

More Answers (1)

Image Analyst
Image Analyst on 27 Jul 2020
If you want a more continuous heat map, you can use scatteredInterpolant(). I've attaching a demo.

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!