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

1 view (last 30 days)
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 Comments
Josh G
Josh G on 21 Jul 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.

Sign in to comment.

Answers (1)

Corinne Jones
Corinne Jones on 15 Jun 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.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!