MATLAB: Expected value of a 1*4 matrix

expected value of a 1*4 matrix

how can i find expected value k=E{(z.^2)*transpose(z)}.
'z' is a 1*4 matrix.
is matlab command mean((z.^2)*transpose(z)) is equal to expected value E{…}??
thanks

Best Answer

Yes. mean(x) averages over x.