squarest_subplots¶
- squarest_subplots(num, landscape)¶
SQUAREST_SUBPLOTS Return the most-square rows/cols for N subplots
- Usage:
[rows, cols] = squarest_subplots(num) [rows, cols] = squarest_subplots(num, landscape)
- Inputs:
num : integer - number of plots – required landscape : logical - landscape (wider than tall) if true (default: true)
- Outputs:
rows : integer - number of rows cols : integer - number of columns
Example
[r, c] = squarest_subplots(6); % 2, 3 [r, c] = squarest_subplots(9, false); % portrait
See also: subplot, figdesign
∿∿∿ Prerau Laboratory MATLAB Codebase · sleepEEG.org ∿∿∿