is there any way that i use two keyboard keys for my matlab code? one for my description and second for repeating that description?

답변 (1개)

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.

댓글 수: 1

my pushbutton1 browses file from the gallery. but for my second button i dont want to browse i just want to get the description repeated. so how would that be possible?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

질문:

2017년 4월 23일

댓글:

2017년 4월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by