Draw a colored error map based on the measurement error
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
raul dorado san segundo
am 26 Jul. 2020
Kommentiert: Image Analyst
am 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 Kommentare
Image Analyst
am 18 Aug. 2020
Look into your options with axis:
axis ij % Origin at top left
axis xy % Origin at bottom left
Akzeptierte Antwort
dpb
am 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 Kommentare
dpb
am 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...
Weitere Antworten (1)
Image Analyst
am 27 Jul. 2020
If you want a more continuous heat map, you can use scatteredInterpolant(). I've attaching a demo.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Colormaps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!