https://au.mathworks.com/help/simulink/slref/simulink.sdi.getsubplotlayout.html
Simulink.sdi.getSubPlotLayout - Get subplot layout in Simulation Data Inspector - MATLAB
This MATLAB function returns a 1-by-2 row vector whose elements are the number of rows and number of columns, respectively, in the grid layout of subplots in...
data inspectorsimulinksdigetsubplot