How can I plot a square matrix ?

2 次查看(过去 30 天)
Léo  Buchenel
Léo Buchenel 2017-10-24
回答: KSSV 2017-10-25
Hello,
I've got a square nxn matrix called A.
I would like the plot to show a nxn grid whose cell (i,j) has a color given by A(i,j) (like contourf but with a grid).
How can that be achieved?
Many thanks in advance for your answer.

回答(1 个)

KSSV
KSSV 2017-10-25
YOu have multiple functions for this: Read about pcolor , surf and imagesc.

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by