How can I plot a square matrix ?

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.

Antworten (1)

KSSV
KSSV am 25 Okt. 2017

0 Stimmen

YOu have multiple functions for this: Read about pcolor , surf and imagesc.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 24 Okt. 2017

Beantwortet:

am 25 Okt. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by