I want that by pressing symbol of sum (+) or subtract (-) I simply got the answer of two inputs given by user.

댓글 수: 2

Dyuman Joshi
Dyuman Joshi 2023년 9월 4일
Answer to what?
Do you want to get the sum when the input is "+" and subtraction when given input "-"?
John D'Errico
John D'Errico 2023년 9월 5일
You sound like you want to go back to using a spreadsheet. MATLAB is not a spreadsheet.

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

답변 (1개)

Walter Roberson
Walter Roberson 2023년 9월 5일

0 개 추천

See https://www.mathworks.com/matlabcentral/answers/143088-real-time-detect-keypress#answer_285124 for a list of key press processing available by using the third-party Psychtoolbox
Other than that, you have to have a figure up and use a KeyPressFcn callback; https://www.mathworks.com/help/matlab/ref/matlab.ui.figure-properties.html#buiwuyk-1-KeyPressFcn

카테고리

도움말 센터File Exchange에서 Timing and presenting 2D and 3D stimuli에 대해 자세히 알아보기

태그

질문:

2023년 9월 4일

답변:

2023년 9월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by