Visualise Large correlation matrix

조회 수: 5 (최근 30일)
Cameron Kirk
Cameron Kirk 2020년 3월 26일
댓글: Peng Li 2020년 3월 27일
Hi Everybody,
Is there anyway I can create a correlation matrix heatmap in matlab?
I have a huge correlation matrix table which has been calculated in SPSS. I just need a better way of visualising this data, if anyone has any ideas that I could achieve this using matlab?
Thanks!
Cameron

답변 (2개)

Peng Li
Peng Li 2020년 3월 26일
You can visualize a matrix by heatmap using imagesc function.
>> test = randn(100, 100);
>> figure; imagesc(test); colorbar;

Cameron Kirk
Cameron Kirk 2020년 3월 27일
Hi Peng Li,
Thanks for getting back to me.
Unfortunately when I try that with my own own data, or all I get is a colour map that looks like the graph below
  댓글 수: 1
Peng Li
Peng Li 2020년 3월 27일
better use colorbar to add a color bar so that you know the corresponding levels these colors are for. Basically this means your correlation matrix shows bigger values on row around 60. Is that expected?

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

카테고리

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