Write a string of alphanumeric letters to an Excel spreadsheet
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!