I'm running a program that is supposed to open an animated figure. However, the figure does not open, it plays in the background. You can only see it by hovering over the figure in the task bar or waiting until the animation is done, then maximizing.
The code is attached. The particular program I was trying to run was poleplace_cartpend.m, there are other programs that also animate a figure. The programs are for a class on control, the figure is animated in the program drawcartpend_bw.m. The figure is meant to be an inverted pendulum being stabilized. There are other figures of the pendulum just swinging. Regardless of which program I run, the figure only animates in the background. Below is an image to clarify what I'm talking about.
I can see the figure by hovering over it in the task bar, but when I click on it to open it, it does not pop up. Once the animation is finished, it can be maximized.