change size of rectangles in full screen
Mostrar comentarios más antiguos

in the photo on the left when the window is reduced...in the photo on the right when I enlarge the window to full screen
Respuestas (4)
Simon Chan
el 10 de Jun. de 2023
0 votos
Check this:
One way is to set AutoResizeChildren of uifigure to off.

2 comentarios
piero
el 10 de Jun. de 2023
Simon Chan
el 10 de Jun. de 2023
Attached the demo for your reference.
chicken vector
el 10 de Jun. de 2023
Use uigridlayout to customise these parameters and have autmatic scalability when you change figure's dimensions.
You can set scalable or pixel width:
uif = uifigure;
uig = uigridlayout(uif, [3 3]);
uig.RowHeight = {'1x',20,'1x'};
uig.ColumnWidth = {'1x',50,'1x'};
uis = uispinner(uig);
uis.Layout.Row = 2;
uis.Layout.Column = 2;
1 comentario
piero
el 10 de Jun. de 2023
0 votos
Categorías
Más información sobre Develop Apps Programmatically en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
