Export data to a new raw of an existing Excel
1 view (last 30 days)
Show older comments
Hello,
I would like to know how can I be adding after each run a new row to an existing Excel doc.
Everytime I run it, I get the answer in the same row.
filename = fullfile(pwd,'ResultsOp.xlsx');
[numbers, strings, raw] = xlsread(filename);
allResults = zeros(1,6);
for k=1:size(allResults,1)
lastRow = size(raw,1);
nextRow = lastRow+k;
end
xlswrite(filename, [P],'Feuil',nextRow);
0 Comments
Answers (1)
See Also
Categories
Find more on Data Import from MATLAB 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!