Randomization problem. Is it complicated?
古いコメントを表示
Hi all,
A question regarding the randomization with Matlab: I have created a script where I have 12 images and 12 sounds, combined into 24 trials. 1-1 1-2 2-1 2-2 3-3 3-4 4-3 4-4 And so on.... The script works very well and no bugs with psychtoolbox.
Any idea of how to randomise those 24 trials while avoiding 2 consecutive trials? For instance, randomise and avoid 3-4 and 4-4 or 4-3 to occur one after the other.
Looking forward for an answer :-)
Many thanks!
1 件のコメント
Image Analyst
2015 年 11 月 10 日
What is your criteria for making sure one pair does not occur immediately after another pair? Why is image 4 and sound 3 not allowed to come after image 3 and sound 4? They're different images and sounds - nothing is consecutive.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Image display and manipulation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!