How can I split a large matrix into many cells (with multiple values)
Mostrar comentarios más antiguos
Hi all,
I'm currently using a data set for football teams in the 2016/17 season.
There is a matrix X which contains data for team i facing team j.
I have a 552 x 92 matrix where each:
Row 1 = # Matches played,
Row 2 = # Wins,
Row 3 = # Losses,
Row 4 = # Draws,
Row 5 = Goal differential,
Row 6 = # Games played at home,
This then begins again, so row 7 would be another team's data.
What I aim to do is create a matrix M which for each cell contains the vector of all the above data for each team occurrence - so that I can continue with this and go on to logistic regression of the variables.
I've seen the mat2cell and accumarray functions for this but am unsure which to continue with as each appear to have errors with this.
Any advise would be appreciated,
Cheers,
H
1 comentario
Jos (10584)
el 22 de Dic. de 2017
What is in the 92 columns?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Descriptive Statistics and Insights en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!