How do I implement the mean1d function to find the mean in this code?

Printable View