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일

1 개 추천

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개)

카테고리

태그

질문:

2019년 9월 25일

댓글:

2019년 10월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by