input function does not show prompt when called during figure callback

Hi,
since Matlab2018 I run into a problem with the input function. When I call it within a figure callback function it does not show the prompt in the command window although it waits for the user input.
Any idea?
Thanks, Corinna

댓글 수: 4

Can you include some simple code that reproduces the issue?
Which callback is causing the problem?
Corrina Lorenz's comment mistakenly posted as an answer moved here:
I can break it down to this:
function testinput(~, ~)
usr_resp = input('TEST', 's');
end
figure('KeyReleaseFcn', @testinput);
I don't see the prompt 'Test' in the command window when I click on the figure but the cursor disappears and below the command window it says 'Waiting for input', i.e. there is functionality but there is no indication of what the callback function is asking for.
Indeed, I see the same. I would suspect that it's a bug in 2018a. The best course is to report it.
If you have access to the pre-release of 2018b you could try in there to see if it is resolved.
Unfortunately I don't. I sent a report to Mathworks. Let's see what happens :-)

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기

제품

릴리스

R2018a

질문:

2018년 7월 4일

댓글:

2018년 7월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by