I use the setting below to maximize the Matlab pattern:
set(gcf,'units','normalized','outerposition',[0 0 1 1])
Although it is maximized, it is still not fully maximized, since the maximization icon on the label (below) is not enabled.
And that makes me free parts of the figure when exporting. Therefore, I am wondering how I can fully maximize it, as if I manually pressed the button to maximize the shape.
source
share