Draw a colored error map based on the measurement error

9 ビュー (過去 30 日間)
raul dorado san segundo
raul dorado san segundo 2020 年 7 月 26 日
コメント済み: Image Analyst 2020 年 8 月 18 日
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 件のコメント
raul dorado san segundo
raul dorado san segundo 2020 年 8 月 18 日
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 2020 年 8 月 18 日
Look into your options with axis:
axis ij % Origin at top left
axis xy % Origin at bottom left

サインインしてコメントする。

採用された回答

dpb
dpb 2020 年 7 月 27 日
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 件のコメント
dpb
dpb 2020 年 7 月 27 日
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...
raul dorado san segundo
raul dorado san segundo 2020 年 7 月 28 日
Many thanks, your answer is very correc

サインインしてコメントする。

その他の回答 (1 件)

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

カテゴリ

Help Center および File ExchangeColormaps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by