How to update the text field from the loaded excel file in MATLAB?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I encountered a problem to update the text field from the loaded excel file in MATLAB.
0 commentaires
Réponse acceptée
Walter Roberson
le 3 Oct 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
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Spreadsheets dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!