Sum specific range of column or row

3 visualizzazioni (ultimi 30 giorni)
az
az il 3 Dic 2018
Risposto: Matt J il 3 Dic 2018
Hi I have a 150 *273 matrix;
How can I sum up from 2nd column to upto last column.
Thanks.

Risposta accettata

Matt J
Matt J il 3 Dic 2018
sum(yourMatrix,2)-yourMatrix(:,1);

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by