Hello! I have mean zero second order gaussian distribution model and I want to generate random variables from this distribution within a specific interval [ -pi/2, pi/2 ]. the PDF depends on 4 parameters that are 2 variances and 2 other coefficients for the seocnd order. I built the PDF within a mtlab function and I would like to know how can I generate random numbers from this PDF ??
Thanks
2 Comments
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/516288-generate-random-number-from-a-function-that-serves-as-pdf#comment_823608
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/516288-generate-random-number-from-a-function-that-serves-as-pdf#comment_823608
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/516288-generate-random-number-from-a-function-that-serves-as-pdf#comment_823610
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/516288-generate-random-number-from-a-function-that-serves-as-pdf#comment_823610
Sign in to comment.