lets say i have A=[1 2 1;3 2 1;3 5 4] and i want to sum up row elements separately and show me results as "Ri=..." here "i" is number of row. in this case R1=7, R2=9. R3=6.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
1 Comment
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/131428-sum-of-the-elements-of-rows-of-matrix#comment_216366
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/131428-sum-of-the-elements-of-rows-of-matrix#comment_216366
Sign in to comment.