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 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