Finding a correlation table
显示 更早的评论
Anyone know how to get started with finding a correlation table of multiple features of muliple class?
3 个评论
the cyclist
2023-12-11
Can you upload the data (or a small representative sample) that you want to find the correlation of? You can use the paper clip icon in the INSERT section of the toolbar.
Bijoya Bhattacharjee
2023-12-12
Bijoya Bhattacharjee
2023-12-12
回答(2 个)
Jalal Khan
2023-12-12
0 个投票
Load your dataset into MATLAB or create one using arrays. Ensure that you have a matrix where each row represents an observation, and each column represents a feature, and another column represents the class label.
Use the corrcoef function to calculate the correlation matrix for all features
If you want to compute the correlation matrix for each class separately, you can use the splitapply function.
You can use MATLAB's plotting functions to visualize the correlation matrix. For example, you might use imagesc for a heatmap.
Sulaymon Eshkabilov
2023-12-12
0 个投票
One appropriate code for corr table is this one: https://www.mathworks.com/matlabcentral/fileexchange/30151-shaded-correlation-table
That you can adjust w.r.t. your exercise.
类别
在 帮助中心 和 File Exchange 中查找有关 Data Distribution Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
