plot mean square error
이전 댓글 표시
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
Azzi Abdelmalek
2015년 8월 16일
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?
채택된 답변
추가 답변 (1개)
NEWAY YIFRU ADAMU
2022년 5월 19일
0 개 추천
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))
카테고리
도움말 센터 및 File Exchange에서 Uniform Distribution (Continuous)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!