Sum specific range of column or row

3 ビュー (過去 30 日間)
az
az 2018 年 12 月 3 日
回答済み: Matt J 2018 年 12 月 3 日
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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by