I have a lot of matrix variables. Some have more than 200 rows. How can I export them to an XLS or DAT file with their names? I tried the following:
d = {'X', 'Y'; X Y};
xlswrite('tempdata1.xls', d, 'Sheet1', 'A1');
What I got in the XLS file was only the strings 'X' and 'Y' but without the values of X
and Y
. X
and Y
should be vectors (7x1).