input function does not show prompt when called during figure callback
Show older comments
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 Comments
Guillaume
on 4 Jul 2018
Can you include some simple code that reproduces the issue?
Which callback is causing the problem?
Guillaume
on 4 Jul 2018
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.
Guillaume
on 4 Jul 2018
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.
Corinna Lorenz
on 4 Jul 2018
Answers (0)
Categories
Find more on MATLAB Report Generator in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!