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

1 次查看(过去 30 天)
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 个评论
Josh G
Josh G 2016-7-21
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.

请先登录,再进行评论。

回答(1 个)

Corinne Jones
Corinne Jones 2016-6-15
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.

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by