for loop forward and backward
Mostrar comentarios más antiguos
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 comentarios
John Chilleri
el 12 de En. de 2017
This can be done with buttons created in a GUI, would that be adequate?
Rightia Rollmann
el 12 de En. de 2017
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!