Hi,
I have a table vTbl with several columns. I would like to add one more column with dates in it. And all the cells in that new column is just today/s date in the format of "mm/dd/yyyy". But I just can't get it right. I tried:
todayDate = datetime('now','Format','MM/dd/yyyy');vdates = cell(size(vTbl, 1), 1);todayeDateStr = datestr(todayDate, 'MM/dd/yyyy');vdates(:) = (todayDateStr);vTbl = [ table(vdates', 'VariableNames', {'VDate'}) vTbl];
But I keep getting error:
The following error occurred converting from char to cell:Error using cellConversion to cell from char is not possible.
I am stuck here. Thanks for any help.
Jennifer
Best Answer