MATLAB Answers

How to change Variable names of corrplot

28 views (last 30 days)
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);

  0 Comments

Sign in to comment.

Accepted Answer

Abhilash Padma
Abhilash Padma on 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 Comment

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags


Translated by