is there any way that i use two keyboard keys for my matlab code? one for my description and second for repeating that description?
이전 댓글 표시
can i use enter key and space bar keys for executing my push button call back functions?
답변 (1개)
Walter Roberson
2017년 4월 23일
0 개 추천
Yes, figures have KeyPressFcn callbacks< and also <https://www.mathworks.com/help/matlab/ref/figure-properties.html#property_d0e274662 WindowKeyPressFcn callbacks . You can create one of those, and inside there you can check the CurrentCharacter to determine which character was typed. Once you have done that, you can call upon the appropriate callback.
If you are using GUIDE to create you GUI, remember to pass the handles structure to the callback you are invoking manually.
카테고리
도움말 센터 및 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!