How to update the text field from the loaded excel file in MATLAB?
조회 수: 2 (최근 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!