Sum specific range of column or row

3 Ansichten (letzte 30 Tage)
az
az am 3 Dez. 2018
Beantwortet: Matt J am 3 Dez. 2018
Hi I have a 150 *273 matrix;
How can I sum up from 2nd column to upto last column.
Thanks.

Akzeptierte Antwort

Matt J
Matt J am 3 Dez. 2018
sum(yourMatrix,2)-yourMatrix(:,1);

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices 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!

Translated by