When there is a user defined input, MATLAB's cursor would automatically go to the command window after hitting run and takes the input.
For some strange reason, in this version of MATLAB (i.e R2016a), I have to manually click on command window (or use CTRL+0) to shift MATLAB's focus.
I tried resetting MATLAB preferences but still doesn't work. I am not sure if other users had experienced a similar problem.
Any help on fixing this is greatly appreciated. Thanks!