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!