How do you write multiple lists from Matlab to the same Excel file?
I have multiple lists in Matlab that I want to write to one excel file. I have one list xordered
and another list aspl
. I don't know the length of the lists until I started Matlab.
I used
data = xlswrite('edgar.xls',fliplr(sortedx'),'A2:A3000')
for the first list, but when I tried to write another list into the same file like this I ended up with two different excel files named edgar.xls
asp_data = xlswrite('edagr.xls', fliplr(aspl'), 'B2:B3000')
Is there a way to write both of these lists into one Excel file? xordered
in column A and aspl
in column B?
+2
a source to share