Finding a correlation table

15 次查看(过去 30 天)
Anyone know how to get started with finding a correlation table of multiple features of muliple class?
  3 个评论
Bijoya Bhattacharjee
Here is one class with three features. I have three classes similar to this

请先登录,再进行评论。

回答(2 个)

Jalal Khan
Jalal Khan 2023-12-12
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
Sulaymon Eshkabilov 2023-12-12
That you can adjust w.r.t. your exercise.

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by