How to change Variable names of corrplot

55 vues (au cours des 30 derniers jours)
Yaser Khojah
Yaser Khojah le 25 Sep 2019
Commenté : Yaser Khojah le 3 Oct 2019
I'm trying to change the variables names of a corrplot from the default one, but It is not working. Can you please help
VariableNames ={'G1','G4','G5','T1','T2','T5','ENPV'};
Matrix_cor = rand(20,7)
figure
corrplot((Matrix_cor, VariableNames);

Réponse acceptée

Abhilash Padma
Abhilash Padma le 30 Sep 2019
In the corrplot function, you should pass the name-value pair. Here you are passing only value but not name. You should use:
corrplot(Matrix_cor, 'varNames', VariableNames);
  1 commentaire
Yaser Khojah
Yaser Khojah le 3 Oct 2019
Thanks alot, it worked.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Interactive Control and Callbacks 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