How to generate random multidimensional samples using a custom multidimensional probability distribution?

3 views (last 30 days)
Is there any matlab function that can generate multidimensional samples using a custom multidimensional probability distribution function? I want to generate multidimensional samples using a custom multidimensional PDF. For example, I have a custom made PDF: P(A) where A = {a1,a2,a3,...}; in other word the PDF is P(a1,a2,a3,...). I want to generate samples {A1,A2,A3,..} from P(A) where A1 = {a11,a12,a13,...}; A2 = {a21,a22,a23,...}; A3 = {a31,a32,a33,...}; ...

Answers (1)

Sindhuja Parimalarangan
Sindhuja Parimalarangan on 28 Jul 2017
You can look into these functions to create n-dimensional random values based on a probability distribution:
  1 Comment
Christian Kurniawan
Christian Kurniawan on 28 Jul 2017
Thank you for your answer. However, if I understand it correctly, mvrnd uses normal distribution to generate the random number and random is only support the pdf available in distribution toolbox. On the other hand, I want to use my own custom pdf. Do I misunderstood the mvrnd and random function?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!