want to plot MSE for a given error
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Please somebody tell me how to write code for Mean Square error
0 Kommentare
Akzeptierte Antwort
Wayne King
am 31 Mai 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)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multirate Signal Processing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!