Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Must be simple, but I can not find it 1

Status
Not open for further replies.

faermi

Chemical
Joined
Oct 29, 2002
Messages
13
Location
GB
I'm developing a program in matlab that uses some windows, but I'm not using GUIDE. I've already finished the program, but I still have a silly problem... How can I tell Matlab to start the window maximized? Must be a silly thing, but I can not find the property. Can anybody help?


Thank you in advance!!!
 
Interesting point. The following code will fill the screen with the window, but will not maximise it in a true sense (ie the maximise button will not show maximised).
Code:
current_units=get(gcf,'Units');
set(gcf,'Units','normalized','OuterPosition',[0 0 1 1]);
set(gcf,'Units',units);
M
 
Just had a quick look on the Matlab Central file exchange. There are a few more sophisticated ways of doing it posted there, but an article in the technical note section of the mathworks website says that a true maximise/mimimise/restore operation is not available in matlab.

M
 
Thank you very much! Your help has been really useful!

Regards from Spain.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top