How to make figure window and command window apear top to bottom?
4 views (last 30 days)
Show older comments
Ok so I want make it so went I plot my figure that it appears on top half of the screen but at the same time make it so the command window appears at the bottom half of the screen when I run the script. How would I do this? Thanks.
0 Comments
Accepted Answer
Image Analyst
on 28 Apr 2014
Click and drag the command window to where you want it. Then after you plot your figure, use this:
% Enlarge figure to top half of the screen.
set(gcf, 'Units', 'Normalized', 'OuterPosition', [0 0.5 1 0.5]);
2 Comments
Image Analyst
on 29 Apr 2014
You'd have to use undocumented things, like Yair shows you http://undocumentedmatlab.com/?s=commandwindow
You can get the handle to the command window:
jDesktop = com.mathworks.mde.desk.MLDesktop.getInstance;
cmdWin = jDesktop.getClient('Command Window');
Then try to set it's alignmentX and alignmentY properties or something. I haven't done it, so you'll have to experiment.
More Answers (1)
See Also
Categories
Find more on Creating, Deleting, and Querying Graphics Objects 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!