MATLAB: How to resize the app window screen in Matlab app designer

screen resize

I am working with Matlab app designer. whenever i run the app, i want it to automatically open in a full screen mode just like any other app. How do I do it?

Best Answer

Create the startup Function for your figure window and use the following code inside it
function startupFcn(app)
units = get(groot, 'Units'); % backup Units
set(groot, 'Units', 'pixels');
app.UIFigure.Position = get(groot, 'ScreenSize');
set(groot, 'Units', units); % restore original units
end
See the attached app.