문제

In Octave, how do I get the sum of all the elements of a matrix a excluding those in the first column?

도움이 되었습니까?

해결책

Try this:

sum(a(1:end, 2:end)(:))
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top