필터 지우기
필터 지우기

how can i display a list of numbers which present serially for 1 second for each number ?

조회 수: 2 (최근 30일)
hello could you tell me please how can i display a list of numbers which present serially for 1 second for each number ? also, how can i present trials ?
thanks

답변 (2개)

Walter Roberson
Walter Roberson 2017년 12월 3일
If you need a high accuracy on the "1 second" then see the third party Psychtoolbox

Image Analyst
Image Analyst 2017년 12월 3일
In your loop where you're showing/presenting/printing/displaying the numbers, put a
pause(1);
after you show the number. This will wait for 1 second before continuing on with the code.
  댓글 수: 3
glamour
glamour 2017년 12월 3일
thank you for your answer but what the functions or loop to display each number ?
Image Analyst
Image Analyst 2017년 12월 3일
To display in a graph or figure, use text(). To display in the command window, use fprintf():
for k = 1 : 5
txt = sprintf('k = %d', k);
fprintf('%s\n', txt);
text(x, y, txt);
pause(1);
end

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

카테고리

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