want to plot MSE for a given error

2 次查看(过去 30 天)
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