Matlab removes excel formulas when writing(saving) files?

[file,path] = uiputfile('*.xlsx');
filename = fullfile(path,file);
writetable(app.newdata,filename);
The code i am using is found above. The original xlsx file contains formulas for certain rows and when i modify the file and resave it, matlab removes all the forumlas in the xlsx file.
Is there an input argument that i can put? i cant seem to see it in the documentations.
Cheers.

1 Kommentar

@MKM, use WriteMode property to write /modify the excel file
writetable(app.newdata,filename,'WriteMode','append','Sheet','NewSheet'); % use the write mode property

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Could you try to implement this code below to your system?
[numbers, strings, raw] = xlsread('*.xlsx');

Produkte

Version

R2021b

Gefragt:

MKM
am 1 Dez. 2021

Kommentiert:

am 24 Dez. 2024

Community Treasure Hunt

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

Start Hunting!

Translated by