Skip to content

rowfun

table · scripts/table/rowfun.m

ROWFUN  Apply function to table rows (MATLAB R2026a compat).

  B = ROWFUN (FUNC, A)
  B = ROWFUN (FUNC, A, NAME, VALUE, ...)

  Name-Value arguments:
    InputVariables, GroupingVariables, SeparateInputs (default true),
    ExtractCellContents (default false), OutputVariableNames, NumOutputs,
    OutputFormat ('auto' default → table for tables; also 'uniform','cell')

  Decision (MATLAB R2026a): default OutputFormat is 'auto' (table for table
  inputs), not 'uniform'.  Grouped outputs include GroupCount.  Default
  output names are Var1.. for ungrouped; with G grouping vars the first
  unnamed function output is Var(G+2) (after grouping vars + GroupCount).

  Tall (nexus#1964 / MATLAB R2026a): rowfun is not overloaded for tall.
  Calling rowfun on a tall table raises MATLAB:UndefinedFunction
  ("Undefined function 'rowfun' for input arguments of type 'tall'.").
  Use varfun for tall table column reductions, or gather then rowfun.