histogram of iterated values

조회 수: 2 (최근 30일)
María Jesús
María Jesús 2015년 1월 26일
편집: Guillaume 2015년 1월 26일
Hi,
I have a program that estimates a parameter from data with random noise. Since the noise is random, the estimate is different each time. I'm using a for loop to run the program multiple times. Is there a way of producing a histogram of the estimate from 100 runs?
Thanks!

채택된 답변

Guillaume
Guillaume 2015년 1월 26일
편집: Guillaume 2015년 1월 26일
numberofruns = 100;
results = zeros(1, numberofruns);
for run = 1:numberofruns
results(run) = yourfunction();
end
histogram(results);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by