xlswrite - define position where to write data
Show older comments
Hello,
I have an excel document and I need to export some data into it. I know the positions, where to put the data. They are in the same column, but not directly after each other. I can only write into those specific positions and not enywhere else, because it would mess up the structure of the excel document.
Can you please tell me, what is the best way to solve this? I have some idea with a loop, but with more data it would be slow to run a cycle. I know how to specify location in xlswrite command, like - C1:C2.
I was thinking if I would have and cell array( or just an array) with one column, where would be some data in the specific position and the rest would be empty cells( or zeros). I would define only the starting point in excel and than I would need matlab to only write the data and jump empty cells, so it won't overwrite some data which are already in the document.
Would anyone know how to do this, or any other better way?
Thanks a lot
Answers (1)
Azzi Abdelmalek
on 4 Aug 2013
0 votes
You can read the column in your excell file, then merge it with a new data, and save the result in your excell file.
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!