Random generator from a sample with replacement
조회 수: 8 (최근 30일)
이전 댓글 표시
Hi. I'm trying to draw 1000 samples with replacement from a dataset that contains 22k observations. I tried the code: datasample(y,1000,size(y,1)); but it's not working. I also tried y(randi([1,22528],22528,1000)); but I guess this provides me with samples with NO replacement. Any idea will be highly appreciated!
Thanks
댓글 수: 0
답변 (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!