help-octave
[Top][All Lists]
Advanced

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

count and sum element negative in array


From: shivax
Subject: count and sum element negative in array
Date: Thu, 20 Sep 2018 03:14:18 -0500 (CDT)

example:

a=[-3,4,5,-8,-9]

i want to sum element negative :

3 + 8+  9 =20

it's possible to do it with a function?





--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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