Typescript Reduce Sum Array Matlab Download