Sum of an Array
in
Programming Questions
•
2 years ago
I'm new to processing and need help with an array question. I need to sum up a 2D array into a 1D array.
For example, {10, 5, 3}, {9, 4, 2}, {3, 8, 5} would turn into {22, 17, 10}.
My data is from a table so essentially I want the new array to have the sums of each column.
Does anyone know how to do this? Thanks.
1