Sum specific range of column or row

4 views (last 30 days)
az
az on 3 Dec 2018
Answered: Matt J on 3 Dec 2018
Hi I have a 150 *273 matrix;
How can I sum up from 2nd column to upto last column.
Thanks.

Accepted Answer

Matt J
Matt J on 3 Dec 2018
sum(yourMatrix,2)-yourMatrix(:,1);

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!