Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

octave sum all elements in matrix

# in octave, use sum(vector)
>> rowVector = [1 2 3]
rowVector =

   1   2   3

>> sum(rowVector)
ans =  6
 
PREVIOUS NEXT
Tagged: #octave #sum #elements #matrix
ADD COMMENT
Topic
Name
2+3 =