Effacer les filtres
Effacer les filtres

Plot controls don't work in version 2016a when waiting on user input from input command

1 vue (au cours des 30 derniers jours)
I just installed version 2016a and I am finding that for me the plot controls (e.g., zoom, hand grip, etc) do not seem to work on a plot if I the command window is waiting on user input from the input command.
For example, if I do the following:
x = 1:10;
y = 2*x + 3;
plot(x,y)
input('Enter any number ');
It is impossible for me to zoom in on the plot or use the other controls in the plot toolbar until I enter a number and hits return. In my older version (2015b) I was able to manipulate the plot while the command window waited for user input.
I have an interactive plot script that relies on allowing the user to manipulate plots while waiting on future user input. Did something change with 2016a that makes it impossible to do this type of thing?
  3 commentaires
Fidan Sümbül
Fidan Sümbül le 2 Juin 2016
I have the same problem too. Did you find any answer or a way around?
Josh G
Josh G le 21 Juil 2016
The changes to the input function in R2016a which appear to block the callbacks for figures has broken a huge number of our scripts. Everyone I work with has gone back to using R2015b.

Connectez-vous pour commenter.

Réponses (1)

Corinne Jones
Corinne Jones le 15 Juin 2016
I ran into this problem as well. I used waitfor to pause the execution of my script until I closed the figure. Looks like pause or waitforbuttonpress may also work.
I ended up getting frustrated and used my university's license to install 2015a instead.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by