Grouping the data of two variables by sum
Mostrar comentarios más antiguos
I have a data with 3 columns R, Z, E. E is a function of R and Z. I would like to add the E coulmn for the same value of R and Z. For example, from the data below, I want to add all the E values for R=1 and Z= 3. Can I get some suggestion?
R Z E
1 3 0.5
3 2 0.4
4 1 0.3
1 3 0.1
1 2 0.5
3 2 0.4
3 comentarios
Walter Roberson
el 11 de Nov. de 2023
When you say "add", do you mean "total" ?
Chinmai Sai
el 11 de Nov. de 2023
Walter Roberson
el 11 de Nov. de 2023
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Data Type Conversion 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!