BestArrayDims

Arrange n elements in an array (for subplots).

您现在正在关注此提交

[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 (2026). BestArrayDims (https://ww2.mathworks.cn/matlabcentral/fileexchange/30561-bestarraydims), MATLAB Central File Exchange. 检索时间: .

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0