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!