필터 지우기
필터 지우기

Error with Screen Function

조회 수: 2 (최근 30일)
Brett
Brett 2012년 11월 9일
My code:
"HideCursor; screenNum=2; [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]; disc1 = [X-80,Y-80,X+80,Y+80]+250; disc2 = [X-80,Y-80,X+80,Y+80]-250; disc3 = [X-80,Y-80,X-80,Y+80]-100; Screen('FillRect',window,[200,200,200], FixCross'); Screen('FillOval',window,[200,200,200], disc1'); Screen('FillOval',window,[200,200,200], disc2'); Screen('FillOval',window,[200,200,200], disc3'); Screen('Flip',window);"
I'm not sure but for whatever reason disc1 and disc2 will appear, but disc3 will not. It either just doesn't appear or sometimes I'll get an error message regarding the [window, rect] line.
Any ideas as to what is wrong?
Thanks, Brett
  댓글 수: 2
Jan
Jan 2012년 11월 10일
Sometimes? We cannot guess the difference, but you can check it. If you mention, that you get an error, post the complete error message here. It is simply a good idea to make answering as easy as possible.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Timing and presenting 2D and 3D stimuli에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by