How to change Variable names of corrplot

38 Ansichten (letzte 30 Tage)
Yaser Khojah
Yaser Khojah am 25 Sep. 2019
Kommentiert: Yaser Khojah am 3 Okt. 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);

Akzeptierte Antwort

Abhilash Padma
Abhilash Padma am 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);

Weitere Antworten (0)

Kategorien

Mehr zu Signal Generation and Preprocessing finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by