Probability visualization with color scale

5 views (last 30 days)
Hi, I have a 296x296 matrix. Each cell in the matrix represents a probability of occurence, [0,1]. I want to create a grid or heatmap where the color of the square corresponds to the probability of occurence - the darker the cell the greater the probability. I have used histogram bins for this matrix and it didn't really represent the data the way that i wanted. I'd like to have something similar to this below, which was done using color scales in Excel.

Accepted Answer

Image Analyst
Image Analyst on 30 Nov 2019
imshow(yourMatrix, []);

Sign in to comment.

More Answers (0)


Find more on Data Distribution Plots 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!

Translated by