BestArrayDims

版本 1.0.0.0 (2.0 KB) 作者: Zachary Danziger
Arrange n elements in an array (for subplots).
300.0 次下载
更新时间 2011/2/28

查看许可证

[nr nc] = BestArrayDims(n)
Given n elements, BestArrayDims returns the dimensions of an array in which to store them. The function also accepts user preferences as to whether they require less wasted space or a more square configuration.

I have found this function particularly well-suited for finding subplot dimensions if it is not known in advance the number of plots that will be needed.

引用格式

Zachary Danziger (2024). BestArrayDims (https://www.mathworks.com/matlabcentral/fileexchange/30561-bestarraydims), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0