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

displayguiMATLABmaximize

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 ?

Best Answer

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'