mean square error expected value

3 views (last 30 days)
zephr nine
zephr nine on 6 Apr 2015
Answered: Image Analyst on 28 May 2015
how to write this in matlab?
Rz=E[z*z transpose]
Rz=E[(z-z bar)(z-z bar)tranpose]

Answers (4)

Mahdiyar on 6 Apr 2015
Hi nine
If you are looking for Root Mean Square you can simply use command "rms". for more information write the following command in Command windows.
doc rms

Star Strider
Star Strider on 6 Apr 2015
Use the mean function and the complex-conjugate-transpose operator ('):
Rz = mean(z(:)*z(:)');
Rz = mean((z(:)-zbar)*(z(:)-zbar)');
The subscript colon ‘z(:)’ forces ‘z’ to be a column vector, so you will not get an error if you give it ‘z’ a a row vector.

ojasvi on 27 May 2015
hi, i have an emg data. first i rectify the signal and then i have to the RMS, how i can i do this. any code for help

Image Analyst
Image Analyst on 28 May 2015
If you have the Image Processing Toolbox, simply use the function immse(). It works for 1-D "images/signals, as well as 2D images.


Find more on Specialized Power Systems in Help Center and File Exchange


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by