help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Summing elements in an array


From: dirac
Subject: Summing elements in an array
Date: Thu, 15 Jul 2010 02:47:48 -0700 (PDT)

Hi,

I am wanting to sum the first 1000 elements in a matrix I have defined.
Initially I want to perform it on one column, but then move to performing
the calculation over all 20 columns. Is there a way to do this as I am
having great difficulty using for loops for this.

Another question is if three nested for loops for analyzing a 210000 element
array is going to be slow...

Thanks in advance.

Martin

-----
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-tp2289902p2289902.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]