for loop forward and backward
이전 댓글 표시
How to make the loop below count increasingly (1,2,3,…) when I press the mouse button and count decreasingly (4,3,2,…) when if press a keyboard button?
for i = 1:10
disp( num2str( i ) );
w = waitforbuttonpress;
end
댓글 수: 2
John Chilleri
2017년 1월 12일
This can be done with buttons created in a GUI, would that be adequate?
Rightia Rollmann
2017년 1월 12일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 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!