[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Summing elements in an array
From: |
dirac |
Subject: |
Re: Summing elements in an array |
Date: |
Thu, 15 Jul 2010 05:18:13 -0700 (PDT) |
Andy, again thanks for sharing your knowledge!
So say I have a 10001x20 matrix m which I want to sum the first 1000 rows of
each column in a function I should write:
answer=sum(m(1:1000,1))
and recieve a row vector called 'answer' with each column sumation in?
-----
Converting myself from Excel to Octave for reasons I hope to find out.
--
View this message in context:
http://octave.1599824.n4.nabble.com/Summing-elements-in-an-array-tp2289902p2290054.html
Sent from the Octave - General mailing list archive at Nabble.com.