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

1 次查看(过去 30 天)
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by