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)(:))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With