필터 지우기
필터 지우기

Oval in a Desire Location

조회 수: 2 (최근 30일)
Brett
Brett 2012년 11월 9일
Using PsychToolBox.
My Code: "HideCursor; screenNum=0; [window, rect] = Screen('OpenWindow', screenNum, 1); [X,Y] = RectCenter(rect); FixCross = [X-3,Y-40,X+3,Y+40;X-40,Y-3,X+40,Y+3]; Screen('FillRect',window,[200,200,200], FixCross'); disc1 = [X-80,Y-80,X+80,Y+80] Screen('FillOval',window,[169,169,0], disc1'); Screen('Flip', window);"
What I would like to do is move the oval to a location of my pleasing, however, it only ever appears in the center of the screen covering my fixation. I think it might have something to do with 'RectCenter(rect)' command, but I don't know of an alternative.
Please help, Brett

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image display and manipulation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by