File Exchange

image thumbnail

subplace

version 1.0.0.0 (1.91 KB) by James Slegers
SUBPLACE Computes 'Position' vectors for a center-aligned set of subplots of varying row lengths

2 Downloads

Updated 04 Mar 2011

View License

SUBPLACE Computes 'Position' vectors for a center-aligned set of subplots of varying row lengths

subplace(R), R is a vector specifying the number of subplots in each row

subplace([3 2]) - returns a 5x4 vector with the position vectors of 5 plots in rows of 3 and 2.

subplace([3 2],1) - returns a 1x4 position vector for subplot #1. That is, the position vector of the first subplot in the top row.

subplace([3 2],[1 2]) - returns a 2x4 array with the position vectors for subplots 1 & 2.

Cite As

James Slegers (2021). subplace (https://www.mathworks.com/matlabcentral/fileexchange/30646-subplace), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

grega

Nice one! Like simplicity...Thank you!

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!