Updated 07 Nov 2015
PGRID allows easy generation of a grid of UIPANELS in MATLAB for your plotting or GUI building needs. Once you've created a grid, use PMERGE to merge adjacent panels into a single uipanel, and PSPLIT to split a single panel vertically or horizontally. I originally coded this for arranging UICONTROLS in GUIs, but have found that it also works quite well as an alternative to SUBPLOT.
The two auxiliary functions PMERGE and PSPLIT are at present poorly documented and could use more rigorous testing. Please report any issues you have in a comment, thanks!
Bob Spunt (2020). PGRID | Create a grid of uipanels for plots or GUIs. Merge and split panels to suit your needs. (https://github.com/spunt/pgrid), GitHub. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!