If your GUI was created in GUIDE(),
- open your gui in guide: guide('mygui')
- Select tools > GUI Options...
- In the "Resize behavior" dropdown box, select 'Proportional'
- Save, close
- If your GUI is already opened, close it; run your GUI
If your GUI was created programmatically using UICONTROL(),
- Set the units of all GUI components to 'normalized (see below)
set(findall(h, '-property', 'Units' ), 'Units', 'Normalized' )
If your GUI was created in APP DESIGNER
- open your gui in app designer: appdesigner('mygui')
- From the component browser on the right, select the main figure (probably on top of the list)
- In the UI Figure Properties window below, select 'Resize components when app is resized'.
- Save the app; close.
- If your GUI is already opened, close it; run your GUI
Now you can maximize the figure and the components should scale to the new figure size.
Best Answer