Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
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

Réponses (2)

Walter Roberson
Walter Roberson le 3 Déc 2017
If you need a high accuracy on the "1 second" then see the third party Psychtoolbox
  1 commentaire
glamour
glamour le 3 Déc 2017
thank you for your answer but what the functions or loop to display each number ?

Connectez-vous pour commenter.


Image Analyst
Image Analyst le 3 Déc 2017
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 commentaires
glamour
glamour le 3 Déc 2017
thank you for your answer but what the functions or loop to display each number ?
Image Analyst
Image Analyst le 3 Déc 2017
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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Timing and presenting 2D and 3D stimuli dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by