Sending Multiple Data to Excel from MATLAB?

조회 수: 4 (최근 30일)
Scott Banks
Scott Banks 2025년 2월 17일
답변: Star Strider 2025년 2월 17일
Hi everybody,
I was wondering if it is possible to send multiple data from MATLAB to Excel in the same file?
At the moment I am using:
filename = 'test.xlsx'
xlswrite(filename,MomentsX,1,'C1:F5')
This only transfers the matrix 'MomentsX' into Excel. What If I want to send multiple data to the same spreadsheet in Excel?
Is this possible?
Many thanks in advance,
Scott

답변 (1개)

Star Strider
Star Strider 2025년 2월 17일
If you have R2013b or later, collect the data you want in a table, configure the table the way you want it, and then use the writetable function to write it to your Excel file. You can also write variable names and row names (if desired) to the Excel file this way.

카테고리

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