want to plot MSE for a given error

조회 수: 2 (최근 30일)
suresh
suresh 2012년 5월 31일
Please somebody tell me how to write code for Mean Square error

채택된 답변

Wayne King
Wayne King 2012년 5월 31일
Assume x is one vector and y is another. you can think of x as your original and y the fit.
x = randn(100,1);
y = randn(100,1);
mean(abs(x-y).^2)
If X and Y are images
X= randn(256,256);
Y = randn(256,256);
absD = abs(X-Y).^2;
sum(absD(:))/numel(X)
  댓글 수: 1
suresh
suresh 2012년 5월 31일
Thank you sir, i vow u big time u really helping me these day to do coding.. thanks a ton

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by