BestArrayDims
Versión 1.0.0.0 (2,04 KB) por
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.
Citar como
Zachary Danziger (2026). BestArrayDims (https://la.mathworks.com/matlabcentral/fileexchange/30561-bestarraydims), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2009a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Language Fundamentals > Matrices and Arrays >
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
Más información sobre Matrices and Arrays en Help Center y MATLAB Answers.
Etiquetas
Agradecimientos
Inspirado por: numSubplots - neatly arrange subplots
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0.0 |
