Octave: Sum all elements except first column?
matrix, octave, sum
Solution
Try this:
sum(a(1:end, 2:end)(:))
Problem
In Octave, how do I get the sum of all the elements of a matrix `a` excluding those in the first column?
matrix, octave, sum
Try this:
sum(a(1:end, 2:end)(:))
In Octave, how do I get the sum of all the elements of a matrix `a` excluding those in the first column?