Generating 15 random values (array of 1x15 dim) whose sum equal to 1.
조회 수: 1 (최근 30일)
이전 댓글 표시
How I can generate a random vector v = [v1, ..., v15] such that v1+...+v15 = 1. Please help me. :MSA
댓글 수: 0
답변 (1개)
John D'Errico
2017년 9월 28일
편집: John D'Errico
2017년 9월 28일
2. Use it.
Do NOT generate a set of random numbers, then just scale them to sum to 1.
참고 항목
카테고리
Help Center 및 File Exchange에서 Random Number Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!