sizes2sub edit page

Given the integer sizes of certain arrays, return the row- and column-indices needed for dealing the subarrays into the columns of a matrix.

Syntax

[row_idx, col_idx] = sizes2sub(sizes)