create quadratic distribution function

Hello
i would like to create a random number using a quadratic distribution.
i know my function, it's a simple case where the number is betwwen -400 to 400, and can't be zero. so f(x) = a*x^2 and a = 2.34375*10^(-3). How should i generate a number that will match this distribution?
thank you all.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Econometrics Toolbox에 대해 자세히 알아보기

태그

질문:

2021년 5월 6일

편집:

2021년 5월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by