Sum specific range of column or row

3 visualizaciones (últimos 30 días)
az
az el 3 de Dic. de 2018
Respondida: Matt J el 3 de Dic. de 2018
Hi I have a 150 *273 matrix;
How can I sum up from 2nd column to upto last column.
Thanks.

Respuesta aceptada

Matt J
Matt J el 3 de Dic. de 2018
sum(yourMatrix,2)-yourMatrix(:,1);

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by