Rank: 1417 based on 61 downloads (last 30 days) and 1 file submitted
photo

Yuval Cohen

E-mail
Company/University
Be4 Ltd.

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Files Posted by Yuval
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Mar 2005 Screenshot Maximize window Maximize window size to fill the entire screen. Has learning capability. Author: Yuval Cohen customization, maximize, figure, resizable, resize, window 61 21
  • 4.80952
4.8 | 21 ratings
Comments and Ratings on Yuval's Files View all
Updated File Comment by Comments Rating
10 Dec 2009 Maximize window Maximize window size to fill the entire screen. Has learning capability. Author: Yuval Cohen HAMADICHAREF, Brahim

You can also add

elseif screen(3) == 1680
   set(gcf,'Units','normalized','Position',[0.00 0.0267 1.0 0.9095])

works for me !

06 Apr 2009 Maximize window Maximize window size to fill the entire screen. Has learning capability. Author: Yuval Cohen Valedi, Andranik

Well done! Works just as a maximized window does, without the window being "maximized" in Windows terms.

12 Apr 2007 Maximize window Maximize window size to fill the entire screen. Has learning capability. Author: Yuval Cohen Huber, James

Also, try it this way:

scrsz=get(0,'ScreenSize');
maxWindow=[1 31 scrsz(3) scrsz(4)-104];
%31 happens to be the pixel width of the task bar and 73 was the space required for the figure toolbar (73+31=104)
h=figure(17);
%choose any number that is available
set(h,'Name','MyGraphTitle','NumberTitle','off','Position',maxWindow)
%maxWindow is in the form [distance-from-left distance-from-bottom window-width window-height]

Also, you can find your maximized position this way:
figure(1);
%manually maximize the window with the mouse here
maxWindow=get(1,'Position')

You can deterimine the default window size this way:
get(0,'Position)

07 Mar 2007 Maximize window Maximize window size to fill the entire screen. Has learning capability. Author: Yuval Cohen Thill, Serge

Just for information, if the purpose is simply to maximse a window, these two lines (slightly modified from the Matlab help) should also do the job:
scrsz = get(0, 'ScreenSize');
figure('Position', [1 scrsz(4) scrsz(3) scrsz(4)]);

29 Jan 2007 Maximize window Maximize window size to fill the entire screen. Has learning capability. Author: Yuval Cohen JR, Junior

Excellent

Top Tags Applied by Yuval
annotation, customization, figure, maximize, resizable
Files Tagged by Yuval
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Mar 2005 Screenshot Maximize window Maximize window size to fill the entire screen. Has learning capability. Author: Yuval Cohen customization, maximize, figure, resizable, resize, window 61 21
  • 4.80952
4.8 | 21 ratings
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com