How to update the text field from the loaded excel file in MATLAB?
5 ビュー (過去 30 日間)
古いコメントを表示
I encountered a problem to update the text field from the loaded excel file in MATLAB.
0 件のコメント
採用された回答
Walter Roberson
2016 年 10 月 3 日
[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
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!