How can I plot a square matrix ?

2 visualizaciones (últimos 30 días)
Léo  Buchenel
Léo Buchenel el 24 de Oct. de 2017
Respondida: KSSV el 25 de Oct. de 2017
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.

Respuestas (1)

KSSV
KSSV el 25 de Oct. de 2017
YOu have multiple functions for this: Read about pcolor , surf and imagesc.

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by