How can I generate skewed normal random numbers?

I would like to generate a random numbers from skewed normal distribution. I know the mean value and the minimum and maximum of the range. I want generate random numbers in that range in a way like a skewed normal distribution with given mean value.
Is it possible in matlab? It is not trivial for me to write such a function.

 Accepted Answer

I think you are looking for pearsrnd. Read about it.

1 Comment

Thank you! It will work. I only have to figure out how to calculate the skewness.

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!