want to plot MSE for a given error

1 visualización (últimos 30 días)
suresh
suresh el 31 de Mayo de 2012
Please somebody tell me how to write code for Mean Square error

Respuesta aceptada

Wayne King
Wayne King el 31 de Mayo de 2012
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 comentario
suresh
suresh el 31 de Mayo de 2012
Thank you sir, i vow u big time u really helping me these day to do coding.. thanks a ton

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by