Effacer les filtres
Effacer les filtres

how to sort correlation matrix

12 vues (au cours des 30 derniers jours)
jenka
jenka le 6 Fév 2017
Commenté : Massimo Zanetti le 6 Fév 2017
Dear all, I have correlation matrix rho. And I would like to sort it so that I can observe the high and low correlations. I also have the labelNames array that I use to plot my correlation matrix and need to sort it accordingly as well. Any suggestions?
[rho, pval] = corr(x, 'rows','pairwise');
imagesc(rho);
title(cat(2,'GPM:',num2str(unique(GPM(index_arr{i})))));
colormap(jet)
colorbar;
labelNames = {'PressDrop','Diffbot','Difftop','p4','p1','Diff','Supply','Choke','psi1','NA', 'SPM','Temp'};
set(gca,'XTickLabel',labelNames); % gca gets the current axis
set(gca,'YTickLabel',labelNames); % gca gets the current axis
  1 commentaire
Massimo Zanetti
Massimo Zanetti le 6 Fév 2017
What kind of sorting makes sense for a matrix? You should explain it better.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Shifting and Sorting Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by