Draw a colored error map based on the measurement error

9 visualizzazioni (ultimi 30 giorni)
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 Commenti
raul dorado san segundo
raul dorado san segundo il 18 Ago 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 il 18 Ago 2020
Look into your options with axis:
axis ij % Origin at top left
axis xy % Origin at bottom left

Accedi per commentare.

Risposta accettata

dpb
dpb il 27 Lug 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 Commenti
dpb
dpb il 27 Lug 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...

Accedi per commentare.

Più risposte (1)

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

Categorie

Scopri di più su Colormaps in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by