plot mean square error
Ältere Kommentare anzeigen
hi,
i want to plot mean square error in matlab
i use the code: MSE=mean((YP-Yd).^2);
it gives me only one value, i want to know a code that gives me a vector to plot it
thanks in advance
1 Kommentar
Azzi Abdelmalek
am 16 Aug. 2015
Can you explain? You have two vectors YP and Yd, the mean of YP-Yd is one number, why are you expecting the result to be a vector?
Akzeptierte Antwort
Weitere Antworten (1)
NEWAY YIFRU ADAMU
am 19 Mai 2022
0 Stimmen
t= length(simulation_time);
for i = 1:t
mse(i) = mean((y(i)-x(i)).^2)
end
plot(abs(mse))
%% or
for i = 1:t
mse(i) = mse(i)+ mean((y(i)-x(i)).^2)
end
plot(abs(mse))
Kategorien
Mehr zu Uniform Distribution (Continuous) finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!