Answers for "octave sum all elements in matrix"

C
1

octave sum all elements in matrix

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

   1   2   3

>> sum(rowVector)
ans =  6
Posted by: Guest on February-20-2022

Code answers related to "octave sum all elements in matrix"

Code answers related to "C"

Browse Popular Code Answers by Language