MATLAB: How to create a table name using a string variable

evil evalMATLABrename table name with string variable

Hi,
How can I use a string variable for a table name?
eg.:
—————————–
T = 'ThisShouldBeMyTableName';
VariableNames = {'StartCash','EndDate'};
T = table(input_values.StartCash, input_values.EndDate, 'VariableNames',VariableNames);
—————————–
The table which is create should be named "ThisShouldBeMyTableName" not "T".
Thank you

Best Answer

I guess I will just use a cell which I will be store the the variable for the "name that should be" and the table itself too...
Thank you
Related Question