Random Colour in Drawformattedtext Function in Matlab
显示 更早的评论
Hi, I am trying to get my text to be a random colour of either blue, yellow or red. It is for a *very* simple stroop test on psychtoolbox in matlab.
DrawformattedText(w, thisStimulus, 'center', 'center', [], 60)
I am wondering if there is a way to insert a function which randomly sets the text to one of those three colours? That could be either inserted in the DrawformattedText brackets or at the beginning of the trial.
Thanks in advance
采纳的回答
更多回答(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!