How to change Variable names of corrplot

52 次查看(过去 30 天)
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);

采纳的回答

Abhilash Padma
Abhilash Padma 2019-9-30
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);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by