Matlab Subplot, Using the subplot() function, MATLAB divides the figure into a grid of rows and columns.