input function does not show prompt when called during figure callback
Afficher commentaires plus anciens
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 commentaires
Guillaume
le 4 Juil 2018
Can you include some simple code that reproduces the issue?
Which callback is causing the problem?
Guillaume
le 4 Juil 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
le 4 Juil 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
le 4 Juil 2018
Réponses (0)
Catégories
En savoir plus sur MATLAB Report Generator dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!