systematic random sampling from excel file

2 ビュー (過去 30 日間)
Migena Proi
Migena Proi 2020 年 8 月 5 日
回答済み: Jeff Miller 2020 年 8 月 5 日
Hello,
I have a list of people on an excel file. I need to select them with a systematic random sampling to ask them to participate in my experiment.
Can some expert of matlab tell the code to make matlab select them in a systematic random sampling.
Thank you!
Sincerely,
Mig

採用された回答

Jeff Miller
Jeff Miller 2020 年 8 月 5 日
Let's say you have 537 people in your excel file, numbered 1-537. You can use the command
participants = randperm(537)
to randomly order those 537 numbers. Then, your first participant is the person with the number in participants(1), the second participant is the person with the number in participants(2), and so on.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by