UNSTACK mat
“Unstacks” a “stacked” matrix mat.ufm into its various components mat1.ufm, mat2.ufm, etc. etc. up to matn.ufm where n is the number of sub-matrices stacked in mat.ufm. The sub-matrices may be re-combined into a stacked matrix using STACK above.
Note that in this case the sub-matrices are all square (unless mat.ufm contained blocks, in which case the block structure is retained in the sub-matrices) and their number corresponds to the number of levels in the full matrix mat.ufm. In addition, as with the procedure STACK, there is no restriction on the number of levels to be unstacked
See also UFMUNSTACK (10.20.29) for a similar operation on blocked as opposed to stacked matrices.