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 commentaires

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 :-)

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB Report Generator dans Centre d'aide et File Exchange

Produits

Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by