How to change Variable names of corrplot

36 visualizaciones (últimos 30 días)
Yaser Khojah
Yaser Khojah el 25 de Sept. de 2019
Comentada: Yaser Khojah el 3 de Oct. de 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);

Respuesta aceptada

Abhilash Padma
Abhilash Padma el 30 de Sept. de 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);

Más respuestas (0)

Categorías

Más información sobre Signal Generation and Preprocessing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by