mean square error expected value

조회 수: 2 (최근 30일)
zephr nine
zephr nine 2015년 4월 6일
답변: Image Analyst 2015년 5월 28일
how to write this in matlab?
Rz=E[z*z transpose]
and
Rz=E[(z-z bar)(z-z bar)tranpose]

답변 (4개)

Mahdiyar
Mahdiyar 2015년 4월 6일
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
Regards.

Star Strider
Star Strider 2015년 4월 6일
Use the mean function and the complex-conjugate-transpose operator ('):
Rz = mean(z(:)*z(:)');
and:
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
ojasvi 2015년 5월 27일
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 2015년 5월 28일
If you have the Image Processing Toolbox, simply use the function immse(). It works for 1-D "images/signals, as well as 2D images.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by