How i can add all elements inside a matrix?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Haseeb Hassan
el 23 de Ag. de 2017
Respondida: Torsten
el 23 de Ag. de 2017
For example i have matrix 3X3 [-10 10 20 ; -20 20 10 ; -10 20 20 ] First want to add row1 elements,then row2, then row3,after getting row1,row2,row3 values,then want to add all the values of row1+row2+row3 to get a single value.Plese any help
0 comentarios
Respuesta aceptada
Torsten
el 23 de Ag. de 2017
S_rows = sum(A,2);
S_complete = sum(S_rows);
Best wishes
Torsten.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Title 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!