Skip to content

collapse

Collapse a cell block to its summary view.

collapse(hCB)

Collapses the cell block referenced by handle hCB (or implied by a cell reference that points into the block) to its compact summary form — typically a single header row showing variable name, type, and shape. Reverse with expand.

Useful for managing screen real estate when many variable cell blocks exist in the same spreadsheet or Environment Window.

collapse(A1) % collapse the block containing A1
collapse(myVarBlock)
  • expand — Expand a previously collapsed cell block.
  • resize — Resize a variable cell block.
  • movetable — Move a table or variable cell block to a new position.