how to sum every each rows on matrix
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Risma Fitriyani
am 27 Dez. 2022
Kommentiert: Image Analyst
am 27 Dez. 2022
i have size matrix 5x25, i want to sum every each rows and the output would be 5x1 matrix. how to do that? thanks in advance
0 Kommentare
Akzeptierte Antwort
Rik
am 27 Dez. 2022
Bearbeitet: Rik
am 27 Dez. 2022
You can use the sum function:
data=rand(5,25);
sum(data,2)
1 Kommentar
Image Analyst
am 27 Dez. 2022
@Risma Fitriyani To learn other fundamental concepts, invest 2 hours of your time here:
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!