%!demo
%! ## `rows2vars` transposes a table: the original variables become rows and the
%! ## original rows become variables.  The old variable names move into a new
%! ## leading variable, and the row names (if any) become the new headers.
%!
%! Age = [38; 43; 40];
%! Height = [71; 69; 64];
%! T = table (Age, Height, 'RowNames', {'Li', 'Diaz', 'Brown'})
%! rows2vars (T)
