Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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 Commenti
Josh G
Josh G il 21 Lug 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.

Accedi per commentare.

Risposte (1)

Corinne Jones
Corinne Jones il 15 Giu 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.

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by