I have a table. A sample of a cell is as below:
var = [1 16 18 17; 1 10 15 6; 78 10 26 43; 9 13 91 4; 1 17 81 23];
I also want to add the column id to this like below:
id=[1;1;1;1;1];
Now i want to create a table by concatenating id column with var:
t = table(id,var)
When i try to write it to a csv file with the following syntax:
csvwrite(t,'filename.csv','Delimiter',',')
I get error like this:
Error using csvwrite
FILENAME must be a character vector.
Error in untitled
csvwrite(t,'filename.csv','Delimiter',',')
How can i write it to a file?