How to acieve a scatter plot like this.
Show older comments
Hi I have to do a scatter plot where each point in e.g. the xy-plane consist of determined value. My question is how do i plot a discrete amout of values where each of the values is related to a x, y-coordinate. I have seen reports with plots similar to the one presenten in the picture: 

Hope to hear your input.
Best regards.
Accepted Answer
More Answers (1)
>> M = randi([-3,6],5,7);
>> M([3,4,5,9,10,15]) = NaN;
>> pcolor(1:7,1:5,M)

You can view many plotting functions here:
1 Comment
Andreas Christensen Sørensen
on 15 Dec 2018
Categories
Find more on Scatter 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!