what the loop or function to display each item?

1 次查看(过去 30 天)
hello
I want to run a program which is display different letters and numbers for 5 seconds for each number or letter for the participants to measure the memory. so what the loop or function to display each item?

回答(1 个)

Nicolas Schmit
Nicolas Schmit 2017-12-5
What about something like this?
numbers = randi(100, 1,10);
for k=1:numel(numbers)
disp(numbers(k))
pause(5)
end

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by