Corrplot function : setup Variable name
3 次查看(过去 30 天)
显示 更早的评论
I am using the function corrplot reading a matrix in one Excel file.
The first row of the Excel file contains the name of Variables that I would like to see on the left and down of the result plot.
Instead I see: Var1 Var2 .....
Please someone can help me to unserstand how to define the name of Variables on the Excel file ? Or how I can prepare a text data file ?
Thanks.
Nicola
2 个评论
采纳的回答
Walter Roberson
2021-12-27
T = readtable("myExcelFile.xlsx");
data = table2array(T);
vars = T.Properties.VariableNames;
corrplot(data, 'varNames', vars)
1 个评论
Khanh Dang
2023-1-10
Hi Walter Roberson,
Please help me how to change the fontsize and color of subplots in the correlation matrix which is plotted by corrplot function?
I need a help immediately, I am on roadblock to complete report now.
Thanks advance!
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!