Finding a correlation table
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Bijoya Bhattacharjee
el 11 de Dic. de 2023
Respondida: Sulaymon Eshkabilov
el 12 de Dic. de 2023
Anyone know how to get started with finding a correlation table of multiple features of muliple class?
3 comentarios
Respuestas (2)
Jalal Khan
el 12 de Dic. de 2023
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.
0 comentarios
Sulaymon Eshkabilov
el 12 de Dic. de 2023
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.
0 comentarios
Ver también
Categorías
Más información sobre Tables en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!