Not sure since which matlab version the following will work, but with version R2011a, you may use a one line code:
set(gcf, 'Position', get(0,'ScreenSize'));
Comment only
16 Aug 2011
maximize figure windows
Maximize figure windows by using the Microsoft Windows application programming interface (API).
Comment only