rows2vars
table · scripts/table/rows2vars.m
ROWS2VARS Reorient table so that rows become variables (MATLAB R2026a).
T2 = ROWS2VARS (T1)
T2 = ROWS2VARS (T1, NAME, VALUE, ...)
Name-Value arguments (MATLAB R2026a):
VariableNamesSource — variable of T1 that supplies output names
DataVariables — variables of T1 to reorient
VariableNamingRule — 'modify' (default) or 'preserve'
Decision (MATLAB R2026a): output always has OriginalVariableNames as the
first variable (cellstr of the data-variable names). Remaining variables
come from RowNames, VariableNamesSource, or Var1..VarN. 'VariablesToLabel'
is not a MATLAB parameter (BadParamName) and is rejected.