diff --git a/matlab/prior_draw.m b/matlab/prior_draw.m index 8cebcdfe4..36bdc80d4 100644 --- a/matlab/prior_draw.m +++ b/matlab/prior_draw.m @@ -166,10 +166,10 @@ if inverse_gamma_2_draws end if weibull_draws - pdraw(weibull_index) = wblrnd(p6(weibull_index), p7(weibull_index)) + p3(weibull_index); + pdraw(weibull_index) = wblrnd(p7(weibull_index), p6(weibull_index)) + p3(weibull_index); out_of_bound = find( (pdraw(weibull_index)'>ub(weibull_index)) | (pdraw(weibull_index)'ub(weibull_index)) | (pdraw(weibull_index)'