Need help with presenting two stimuli at the same time

2 views (last 30 days)
Hi guys,
Before we begin I should explain I'm very new to matlab and have zero programming experience. As in, i'm a physician and I suck at this.
Anyway I'm kind of diving into this face-first. I'm trying to set up a task that presents two stimuli at once (from a set of four pictures). Door 1, will return a reward 80% of the time and a neutral picture 20% of the time. Door 2 will be 20% reward and 80% neutral, and Doors 3 and 4 will both return 50% reward and 50% neutral.
Here is what I have so far but I know that its completely wrong (also the doors are on top of one another but I can't seem to get them to display properly) and I can't figure out where to go from here. I've tried googling it but I keep going in circles.
%%present picture
img_rot = imread('door1.bmp');
img_text_rot = Screen('MakeTexture', w, img_rot);
Screen('DrawTexture', w, img_text_rot, [], [50,50,164,312]);
img_rot = imread('door2.bmp');
img_text_rot = Screen('MakeTexture', w, img_rot);
Screen('DrawTexture', w, img_text_rot, [], [100,50,164,312]);
Screen('Close', img_text_rot);
Screen('Flip', w);
WaitSecs(0.15);
I can't even get the stimuli to display properly, I haven't even gotten to figuring out how to set up the outcomes (reward vs neutral outcome). Any advice??
Thanks in advance

Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!