Summing over the same category within one column
Mostrar comentarios más antiguos
Hi there,
I attached a rough sketch of my matrix to better describe the problem.
I have troubles summing over the same category within one column. I guess I would have to define that there are 14 categories first? I could also reshape every column in a loop? I am not sure how to proceed?
I am very grateful for help :)
6 comentarios
KSSV
el 8 de Mayo de 2017
What is class of your matrix?
Lisette
el 8 de Mayo de 2017
Adam
el 8 de Mayo de 2017
Your screenshot isn't from Matlab so are you asking how to put your data in a matrix in the first place?
KSSV
el 8 de Mayo de 2017
How cat1, cat2 etc strings present? What are those?
Lisette
el 8 de Mayo de 2017
Jan
el 8 de Mayo de 2017
The picture is not clear. What exactly does "Cat 1" mean? Where is which information stored and which data do you want to sum? Please use standard Matlab syntax to explain the input data.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre MATLAB 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!