Skip to content

varfun

table · scripts/table/varfun.m

VARFUN  Apply function to table variables (MATLAB R2026a compat).

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

  Name-Value arguments:
    InputVariables, GroupingVariables, OutputFormat
      ('table'/'auto' default, 'uniform', 'cell')

  Decision (MATLAB R2026a): table-format output variable names are
  <fun>_<var> (Fun_ for anonymous handles).  Grouped output includes
  GroupCount after the grouping variables.

  Tall (nexus#1964 / MATLAB R2026a):
    * Tall table inputs are supported.  Result is always tall (including
      OutputFormat 'uniform' and 'cell'); gather to materialize.
    * Supported NV: InputVariables (not a function_handle), OutputFormat.
    * GroupingVariables / ErrorHandler →
      MATLAB:bigdata:array:VarfunUnsupportedParameter
    * InputVariables as function_handle →
      MATLAB:bigdata:array:VarfunUnsupportedInputVarsFcn
    * In-memory shim: gather → in-memory varfun → re-wrap with tall().