필터 지우기
필터 지우기

Write a string of alphanumeric letters to an Excel spreadsheet

조회 수: 2 (최근 30일)
Philosophaie
Philosophaie 2013년 10월 20일
I am trying to write a string of alphanumeric letters to an Excel spreadsheet. This is what I have so far:
exl = actxserver('excel.application');
exlWkbk = exl.Workbooks;
exlFile = exlWkbk.Open(['C:\path\exlfile.xlsm']);
exlSheet1 = exlFile.Sheets.Item('Sheet1');
exl.visible = true;
for k=1:4
for i=1:4
n=n+1;
exlSheet1.Range(['B' num2str(n)]).string = Affinity(i,j,k);
end
end
end
exlWkbk.Close;
exl.Quit;

답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by