change size of rectangles in full screen
조회 수: 2 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (4개)
claudio
2023년 6월 10일
handle = findall(0,'type','uispinner');
handle.outerPosition = [xx yy width heigth];
댓글 수: 2
chicken vector
2023년 6월 10일
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;
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop uifigure-Based Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!