[...] that the expression x[,+] is a subscript reduction operator that returns the sum of the elements in each row of x. To test the function, simulate 1,000 …