How to update the text field from the loaded excel file in MATLAB?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I encountered a problem to update the text field from the loaded excel file in MATLAB.
0 Commenti
Risposta accettata
Walter Roberson
il 3 Ott 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
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Spreadsheets in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!