%% Select the Command Window After Creating a Plot
% Create a line plot and then bring focus back to the Command Window.

x = 0:pi/100:2*pi;
y = sin(x);
plot(x,y)
commandwindow

% Copyright 2018 The MathWorks, Inc