Sum specific range of column or row

1 vue (au cours des 30 derniers jours)
az
az le 3 Déc 2018
Réponse apportée : Matt J le 3 Déc 2018
Hi I have a 150 *273 matrix;
How can I sum up from 2nd column to upto last column.
Thanks.

Réponse acceptée

Matt J
Matt J le 3 Déc 2018
sum(yourMatrix,2)-yourMatrix(:,1);

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by