Export to existing excel file in same sheet
1 次查看(过去 30 天)
显示 更早的评论
My code calculates two required outputs which I can export it to a excel file. After this, I change some values in the code above to get new values. I would like to save the new values to the same old existing file,each time I run the code with new values. Is there any way to perform this?
1 个评论
Bob Thompson
2018-3-1
I'm assuming you're using the xlswrite() command. If you don't change anything about the output file directory or name it should just overwrite the old data with new data. If you specify a sheet and range as well it will definitely overwrite the old data.
回答(1 个)
Tony Mohan Varghese
2018-3-20
Please refer to the examples on: https://in.mathworks.com/help/matlab/import_export/exporting-to-excel-spreadsheets.html
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!