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 Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by