You want your confusion values to define cell values instead of node values (as surface
does).
You can use imshow
for your purpose, maybe combined with some colormap
.
A = [1 0 0 0 0
0 0.9 0 0.1 0
0 0 1 0 0
0 0 0 1 0
0.1 0 0.2 0 0.7 ]
imshow(A, 'InitialMagnification',10000) % # you want your cells to be larger than single pixels
colormap(jet) % # to change the default grayscale colormap