MATLAB: Change variable names in a table

change variable namesMATLABvariable change

Hi all,
I would like to change all variable names within a table, to attached file, a cell array.
This is what i use now;
rf1.Properties.VariableNames = vars1

Best Answer

You can use a cell array of names, like this:
rfi.Properties.VariableNames = {'name1','name2',...}