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 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!