Alternatives to 'datasample'
이전 댓글 표시
Hi!
I'm looking for an alternative to the datasample function. It's a part of the Statistics & Machine Learning toolbox. Any ideas? I want to be able to sample rows of data from tables and matrices and would like to have the choice of sampling with/without replacement.
Thanks for your ideas!
댓글 수: 5
Adam Danz
2020년 8월 22일
Are you sampling with replacement or without replacement?
Veena Chatti
2020년 8월 22일
Veena Chatti
2020년 8월 22일
편집: Veena Chatti
2020년 8월 22일
Adam Danz
2020년 8월 22일
randperm samples without replacement.
To sample with replacement, use randi.
Veena Chatti
2020년 8월 26일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Text Data Preparation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!