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 中查找有关 Get Started with Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!