Skip to content

cellslices

general · scripts/general/cellslices.m

CELLSLICES  Cut an array into slices along one dimension (Octave name).
  S = CELLSLICES(X, LB, UB)
  S = CELLSLICES(X, LB, UB, DIM)
  Returns a 1-by-numel(LB) cell array whose K-th element holds
  X(... LB(K):UB(K) ...) along DIM (default: first non-singleton).
  MATLAB has no public cellslices. Unmarked MATLAB-mode scripts that
  never call this name are unaffected.

  See also MAT2CELL, NUM2CELL, CELL2MAT.