Filter löschen
Filter löschen

histogram of iterated values

1 Ansicht (letzte 30 Tage)
María Jesús
María Jesús am 26 Jan. 2015
Bearbeitet: Guillaume am 26 Jan. 2015
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!

Akzeptierte Antwort

Guillaume
Guillaume am 26 Jan. 2015
Bearbeitet: Guillaume am 26 Jan. 2015
numberofruns = 100;
results = zeros(1, numberofruns);
for run = 1:numberofruns
results(run) = yourfunction();
end
histogram(results);

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by