How do you write multiple lists from Matlab to the same excel file?
Posted
by Ben Fossen
on Stack Overflow
See other posts from Stack Overflow
or by Ben Fossen
Published on 2010-04-14T04:40:17Z
Indexed on
2010/04/14
4:43 UTC
Read the original article
Hit count: 271
I have several lists in Matlab that I want to write to the same excel file. I have one list xordered and another list aspl. I do not know the length of the lists till after I run the Matlab program.
I used data = xlswrite('edgar.xls',fliplr(sortedx'),'A2:A3000') for the first list but when I tried to write another list to 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 I can write both of these lists into the same excel file? xordered in the A column and aspl in the B column?
© Stack Overflow or respective owner