about the cursor return to command window
Show older comments
It's usually that when we input 'figure'on the command window, the figure window would come out and display on the most significant end. But if I want to the return back to the command window without click on it,which statement I can use after the 'figure' function could help me achive that goal?(not 'figure;clear all', I want to keep those figure)
Accepted Answer
More Answers (1)
This is the job for the command commandwindow
figure; drawnow; commandwindow
The drawnow is essential, because otherwise the event stack is evaluated when the command window gets the focus - and then the figure is on top. So force the processing of the event queue by drawnow and call commandwindow afterwards.
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!