Dear all,
I want to add a keyboard short cut to a menu. Is that possible?
My sample code as follows:
again = true;CellCount = 0;while again && CellCount < 500 choice = menu('Select the Image You Want.', ... 'A','B','C');if choice ==1; figure, imshow('cameraman.tif'); % or press a in the keyboard
endif choice ==2; figure, imshow('circles.png'); % or press b in the keyboard
endif choice ==3; figure, imshow('coins.png'); % or press c in the keyboard
endend
Is there a way to make such a keyboard shortcut?
Any help will be appreciated.
Meshoo
Best Answer