Hello, i'm trying to create a loop counter that will add increments of 1 every time I click a pushbutton. I don't really have any code as of yet since i'm new to programming but i've figured how to detect the button being pushed, and display a number in the static text. It keeps displaying '1', how do I display 1,2,3,…..n for every push? Here is what I have so far. Thanks a bunch
a = 0;if (handles.pushbutton5) a = a + 1; set(handles.text8,'string',a);end;
Best Answer