Visualise Large correlation matrix

20 visualizzazioni (ultimi 30 giorni)
Cameron Kirk
Cameron Kirk il 26 Mar 2020
Commentato: Peng Li il 27 Mar 2020
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

Risposte (2)

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

Cameron Kirk
Cameron Kirk il 27 Mar 2020
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 Commento
Peng Li
Peng Li il 27 Mar 2020
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?

Accedi per commentare.

Categorie

Scopri di più su Data Distribution Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by