How to make the estimation error and average it correctly?
이전 댓글 표시
Is the code correct for the whole part especially the estimation error and average error part?
채택된 답변
추가 답변 (1개)
KALYAN ACHARJYA
2020년 12월 12일
It seems the code considering the mean error for the last experiment iteration. You may same the E of all experiment and later get the error. Here E as array.
E=zeros(1,10); %preallocation
for experiment = 1:10
.......
E(experiment)=(errM).^2;
%....^
end
Em=mean(E);
disp(['Em=' num2str(Em)]);
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!