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?
0 个评论
回答(1 个)
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!