Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Increment a variable every time a push button is pressed:

1 visualización (últimos 30 días)
Mohammad Ayoub
Mohammad Ayoub el 2 de Dic. de 2017
Cerrada: Walter Roberson el 2 de Dic. de 2017
Greetings.
If I want to create a simple GUI which contains only one push button, and each time I press this push button I want a variable x to be increased by 1, how can I do that in MATLAB? I have worked with simple GUIs but I am not that professional. (Please note that I want the variable x to increase, not a display in the interface itself.)
Thanks in advance.
Regards.
  1 comentario
Walter Roberson
Walter Roberson el 2 de Dic. de 2017
Duplicates https://www.mathworks.com/matlabcentral/answers/370623-increment-a-variable-every-time-a-push-button-is-pressed

Respuestas (0)

La pregunta está cerrada.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by