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

 채택된 답변

Torsten
Torsten 2017년 8월 23일

0 개 추천

S_rows = sum(A,2);
S_complete = sum(S_rows);
Best wishes
Torsten.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

질문:

2017년 8월 23일

답변:

2017년 8월 23일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by