How to generate intercorrelated multivariate random numbers?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, how can I generate a matrix (say 100x60) of normally distributed variables where some of the variables are correlated with others and some of them aren't?
do I approach this with 'randn' or 'mvnrnd' function?
Thank you in advance!
댓글 수: 0
답변 (1개)
John D'Errico
2015년 3월 28일
편집: John D'Errico
2015년 3월 28일
help mvnrnd
Did you read the help? Maybe you need to understand what a correlation matrix is, and how to convert that to a covariance matrix.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!