Info

This question is closed. Reopen it to edit or answer.

xlswrite overwriting issue!!

1 view (last 30 days)
Ben
Ben on 2 Mar 2017
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi everyone,
I've created an automated detection image processing code, but have run into some trouble when attempting to export the data. I'm using xlswrite and running on a mac, so the data just outputs to a CSV file (which is totally fine). My function runs a loop in order to analyze a number of images in a row, however, after each image is completed, the corresponding data overwrites the previous data from the previous image. Is there a way to simply append the data from each new image onto the previous dataset? (I.E. A single column where the new data simply appends to the next empty row in the column until the loop ends). Running MATLAB2015b (MAC).
My current writing method looks like this (and is all nested within the image reading loop);
filename = 'filename.xlsx'; xlswrite(filename, DATA)

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!