Вопрос

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