Check out example codes for "matlab average". It will help you in understanding the concepts better.

Code Example 1

mean(A)

Learn ReactJs, React Native from akashmittal.com