BestArrayDims
Version 1.0.0.0 (2,04 KB) von
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.
Zitieren als
Zachary Danziger (2026). BestArrayDims (https://de.mathworks.com/matlabcentral/fileexchange/30561-bestarraydims), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2009a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Language Fundamentals > Matrices and Arrays >
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
Mehr zu Matrices and Arrays finden Sie in Help Center und MATLAB Answers
Tags
Quellenangaben
Inspiriert von: numSubplots - neatly arrange subplots
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.0.0.0 |
