Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



sum command
Posted:
Feb 22, 2013 11:43 AM


Hi,
Is there a way of doing the following using vectorisation.
I have a numeric matrix M, 2 columns x 50 rows.
I want to sum(M(end20:end,1)) and sum(M(end10:end,2)).
Can I do this in one sum command?
Thanks,
L.



