Determine and present result based on set probabilities?
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I'm making a simple experiment where a person gains or loses several dollars based on what item on the screen they choose. If they choose item A, there's an 80% chance of them winning $10, if they choose item B, a 20% chance of winning $10, etc. I'm trying to start with an if statement, but not sure how to take the percentage and possible outcome, calculate if they will actually win or not, and then display that result. Any help would be appreciated! P.S. - I'm using Psychtoolbox.
Thanks.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Psychtoolbox-3: Vision and neuroscience research 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!