Increment a number in specific column of continuously increasing data matrix after pressing button in GUI

2 views (last 30 days)
Hello everyone, I Have initialized a handles.counter=0 and I want to increase it whenever i press the button (event button) in Gui and I gave the command in callback of that button as handles.counter=handles.counter+1; guidata(hObject, handles); The sequence is that first I press the start recording button and in that button callback there is one line for saving number in 17 column like Alldata((b(1)-2400):b(1)-1,17)=handles.counter; so after pressing another button (event button) counter should increase and updata new increased value e.g 2,3 so on everytime i press this event button. the above lines are working fine without any error but the number is not increasing in 17 column after pressing the event button although i gave counter command in callback. thanks in advance.

Answers (0)

Categories

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

Community Treasure Hunt

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

Start Hunting!