How to change Variable names of corrplot

조회 수: 37 (최근 30일)
Yaser Khojah
Yaser Khojah 2019년 9월 25일
댓글: Yaser Khojah 2019년 10월 3일
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에서 Signal Generation and Preprocessing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by