MATLAB: Finding MSE of elements in an array

array

I am trying to calculate MSE of some elements that are in an array, for example:
a=[2,3,4,16,7,19,10]
how can I find MSE for the values of this array?

Best Answer

The Wikipedia article on Mean squared error (link) states ‘For an unbiased estimator, the MSE is the variance of the estimator.’ I would use the var (link) function.