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!