Sum specific range of column or row

3 次查看(过去 30 天)
Hi I have a 150 *273 matrix;
How can I sum up from 2nd column to upto last column.
Thanks.

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by