how can i display a list of numbers which present serially for 1 second for each number ?
1 回表示 (過去 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
0 件のコメント
回答 (2 件)
Walter Roberson
2017 年 12 月 3 日
If you need a high accuracy on the "1 second" then see the third party Psychtoolbox
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 件のコメント
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
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!