Pregunta

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

¿Fue útil?

Solución

Try this:

sum(a(1:end, 2:end)(:))
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top