MATLAB: How to set the frame of app designer

app designerframe uifingureMATLAB

when i run a APP, i want to set the app in front of screen. which parameter of APP can be changed to achieve my requirement?

Best Answer

For MATLAB R2018a and later versions you can use the figure command to focus your app on top of all windows.
Use the code below to achieve what you want.
Go to "UIFigure > callbacks > startupFcn callback" and paste the following code
drawnow; % Put all your startup code before this line
figure(app.UIFigure);
app.UIFigure.WindowState = 'maximized'; % If your window to be maximized
Hope this helps!