BestArrayDims
バージョン 1.0.0.0 (2.04 KB) 作成者:
Zachary Danziger
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 (2024). BestArrayDims (https://www.mathworks.com/matlabcentral/fileexchange/30561-bestarraydims), MATLAB Central File Exchange. 取得済み .
MATLAB リリースの互換性
作成:
R2009a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxカテゴリ
- MATLAB > Language Fundamentals > Matrices and Arrays >
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
Help Center および MATLAB Answers で Matrices and Arrays についてさらに検索
タグ
謝辞
ヒントを得たファイル: numSubplots - neatly arrange subplots
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!バージョン | 公開済み | リリース ノート | |
---|---|---|---|
1.0.0.0 |