subplotgrid

Creates a grid of axes with control over sizing and spacing.

You are now following this Submission

Creates a grid of axes of specified size and returns a matrix of handles of the axes. This function is similar to subplot but it will create all axes at once. This function supports sizing and spacing of the subplots by specifying axis width/height, column/row padding, and padding on the sides of the figure. This function also support linking the y-axes of each row and linking the x-axes of each column.

Cite As

Curt Laubscher (2026). subplotgrid (https://in.mathworks.com/matlabcentral/fileexchange/71376-subplotgrid), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1.0

-Fixed various bugs in sizing and spacing and changed how it behaves to act as expected in most circumstances
-Added Flip option to change the order of resulting axes; default is similar to subplot now
-Update image
-Included example code

1.0.0.0