How can add minimize or maximize button feature in GUI figures or tables ?

조회 수: 11 (최근 30일)
I have GUI built in Guide environmen. The GUI has a region where the plot figures and tables can be displayed using pushbutton/s. When I press the button it only outputs the figure or table but no minimize and maximize options can be seen. I would like to add minimize or maximize the figures and tables within GUI How can I do it ? Any suggestions ?

채택된 답변

Image Analyst
Image Analyst 2020년 12월 20일
I don't know what it means to maximize a table on a figure, but to maximize the figure itself, you can do
g = gcf;
g.WindowState = 'maximized'
  댓글 수: 2
VBBV
VBBV 2020년 12월 20일
편집: VBBV 2020년 12월 20일
Thanks for the solution. It works for figures. How can I minimize or maximize for tables in GUI layout ?
Image Analyst
Image Analyst 2020년 12월 21일
You can set the Position property of the control to be whatever you want. Like
handles.uitable.Units = 'normalized';
handles.uitable1.Position = [0, 0, 1, 1];
If not, then show a picture of your GUI before, and then after maximizing. Use a paint program to create it it you need to.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by