WriteMode append not working when actually appending?
Show older comments
I'm in Matlab R2021a, attempting to output data to an excel spreadsheet. I'm trying the following:
writematrix('outputstring','outputfile.xls','WriteMode','append')
This only works when the file 'outputfile.xls' is empty. If it has anything in it already this error shows up:
Error using writematrix (line 206)
Unable to determine range. Range must be of the form 'A1' (cell), 'A:B' (column-select), '1:5' (row-select),
'A1:B5' (rectangle-select), or a valid named range in the sheet.
I'm trying to output matrices as well as strings but I get this problem whichever data type I use.
Any help appreciated.
Thanks
4 Comments
Mathieu NOE
on 2 Jul 2021
Hello
can you share the code and data to replicate the issue ?
Adam Johnston
on 2 Jul 2021
Edited: Adam Johnston
on 2 Jul 2021
Walter Roberson
on 2 Jul 2021
writematrix cannot handle 3d.
Adam Johnston
on 2 Jul 2021
Accepted Answer
More Answers (0)
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!