How to plot this Matrix?

조회 수: 4 (최근 30일)
Arif Ahmed
Arif Ahmed 2018년 11월 8일
댓글: Arif Ahmed 2018년 11월 8일
Hi guys,
I have totally forgotten how I was able to plot this matrix in MATLAB. Can anybody plot this and please aid me with the code. The values are just values of the matrix.
if true
A = [45.24 16.81 -27.01 -9.614; -19.9 46.77 9.169 -28.33; -27.11 -9.381 55.07 16.98; 8.874 -28.66 -20.19 56.69]
% code
end
I had previously plotted it and this is how it looks.

채택된 답변

Image Analyst
Image Analyst 2018년 11월 8일
Try this:
A = [45.24 16.81 -27.01 -9.614; -19.9 46.77 9.169 -28.33; -27.11 -9.381 55.07 16.98; 8.874 -28.66 -20.19 56.69]
heatmap(A)
  댓글 수: 1
Arif Ahmed
Arif Ahmed 2018년 11월 8일
Thank you so much. Appreciate it!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by