Constructing the matrix for a color-coded 2d matrix visualization

1 view (last 30 days)
Hi all,
I have the following:
- Two distance vectors: Each of these vectors contains the distances of all points (pixels) of an image to one specific point respectively.
- An accuracy vector, as each point/pixel is also associated with an accuracy value (their order corresponds to the order of the distances).
What I want to do:
I would like to have a color coded 2d-matrix, whereby the y- and x-axis being the distances (ordered from smallest to largest) contained in the two "distance" vectors, and the values displayed in matrix are the accuracies.
What is the fastest way to construct a matrix from these three vectors (attached), as in my case the same distance can also appear more than once (and so the corresponding accuracies in the matrix would have to averaged possibly)?
Thanks for the help

Answers (0)

Community Treasure Hunt

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

Start Hunting!