質問

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