How to update the text field from the loaded excel file in MATLAB?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
KenL
am 3 Okt. 2016
Kommentiert: KenL
am 3 Okt. 2016
I encountered a problem to update the text field from the loaded excel file in MATLAB.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 3 Okt. 2016
[num, txt, raw] = xlsread('TheFilename.xlsx');
raw{7,11} = 'Some New String'; %update the location in memory
xlswrite('TheFilename.xlsx', raw) %store everything back
OR,
newcontent = 'Some New String';
xlswrite('TheFilename.xlsx', newcontent, 'K7:K7'); %update only the one location
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!