MATLAB: Readtable – renaming variables after creating

MATLABreadtable

Hi,
I'm using readtable to read in and create a table of data in a text file. The way the text file is written there is no row containing the header names. Hence readtable names the columns Var1, Var2, …
Is there a way of renaming these names to something more descriptive after the table has been formed?
Thank you

Best Answer

See the documentation for Change a Variable Name.