Info

此问题已关闭。 请重新打开它进行编辑或回答。

Increment a variable every time a push button is pressed:

1 次查看(过去 30 天)
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 个评论
Walter Roberson
Walter Roberson 2017-12-2
Duplicates https://www.mathworks.com/matlabcentral/answers/370623-increment-a-variable-every-time-a-push-button-is-pressed

回答(0 个)

此问题已关闭。

产品

Community Treasure Hunt

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

Start Hunting!

Translated by