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
Akira Agata
Akira Agata 2017년 10월 25일
It seems that imagesc will do it.

댓글을 달려면 로그인하십시오.

답변 (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