BestArrayDims
[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.
Cita come
Zachary Danziger (2025). BestArrayDims (https://www.mathworks.com/matlabcentral/fileexchange/30561-bestarraydims), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Language Fundamentals > Matrices and Arrays >
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
Tag
Riconoscimenti
Ispirato da: numSubplots - neatly arrange subplots
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |