FUNCTION REFERENCE

rowfun

Apply a function to each table row.

Apply a function to each table row.

Syntax

B = rowfun(func, T, 'InputVariables', vars, 'GroupingVariables', g, 'OutputVariableNames', names, 'NumOutputs', n, 'OutputFormat', 'table'|'uniform'|'cell', 'SeparateInputs', tf, 'ExtractCellContents', tf)

Each input variable's row is one argument (or one concatenated row with 'SeparateInputs', false). With grouping variables func gets the rows of each group.

Example

rowfun(@(a, b) a + b, table([1;2], [3;4]), 'OutputVariableNames', 's')

Differences from MATLAB: No ErrorHandler or timetable output.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.