what the loop or function to display each item?

조회 수: 1 (최근 30일)
glamour
glamour 2017년 12월 5일
답변: Nicolas Schmit 2017년 12월 5일
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