The specific text that applies is as follows:
For example, the subplot function does not support automatic resizing. To use this function in your app:
- Drag a panel component from the Component Library onto your canvas.
- Set the AutoResizeChildren property of the panel to 'off'.
- Specify the panel as the parent container using the 'Parent' name-value argument when you call subplot. Also, specify an output argument to store the axes.
- Call the plotting function with the axes as the first input argument.
app.Panel.AutoResizeChildren = 'off';
ax1 = subplot(1,2,1,'Parent',app.Panel);
ax2 = subplot(1,2,2,'Parent',app.Panel);
plot(ax1,[1 2 3 4])
plot(ax2,[10 9 4 7])

