How to increment a value?

I want to make a Push Button that whenever is pressed, the Static Text goes up one level. For example, it is 1 and after button press it gets 2. I know the GUI part, but I don’t know the code for incrementing the value. Any idea?

Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Asked:

on 19 Feb 2017

Community Treasure Hunt

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

Start Hunting!