Thank you for your help!
So far I was able to do this:
[screenXpixels, screenYpixels] = Screen('WindowSize', window); [xCenter, yCenter] = RectCenter(windowRect); InitializePsychSound; Screen('Flip', window); 0; dotColor = [1 1 1]; HideCursor;
start_time = GetSecs; i=1; elapsed_time = 0;
PsychPortAudio('Start', pahandle, 1, 0, []); while elapsed_time < 0.5
raio = (i*10);
r = [xCenter-raio, yCenter-raio, xCenter+raio, yCenter+raio];
elapsed_time = GetSecs - start_time;
tam = i * 10;
t=t+1;
i=i+1;
s(t)= Screen(window, 'Flip');
end
Screen('Flip', window); KbStrokeWait; sca
It works fine! But now, I need to generate the dot at a certain position (in depth) and approaching the observer at a certain constant speed. So what I want to do is to determine the size of the dot at the beginning of presentation and then increase its size until the end of the presentation. do you know how can I do that in this bit of code that is above?
Many thanks for your help! :)