No BSD License
a = ones(3); b = eye(3); pilehoriz = cat(1, a, b) pilevert = cat(2, a, b) pile = cat(3, a, b)
Contact us at files@mathworks.com