Plotting normalised histogram of parameters
Mostra commenti meno recenti
How can I plot the normalized histograms for parameter x, which correspond to marginal probability distributions
n = 20000;
x = zeros(n,1);
x(1) = Mint(1);
for j = 1:n-1
x_c = normrnd(x(j),25);
if rand < min(1,normpdf(x_c)/normpdf(x(j)))
x(j+1) = x_c;
else
x(j+1) = x(j);
end
end
Thank you
Risposte (1)
Navya Seelam
il 9 Dic 2019
0 voti
Categorie
Scopri di più su Histograms in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!