필터 지우기
필터 지우기

How to paste matlab table into Excel with headers

조회 수: 26 (최근 30일)
JFz
JFz 2016년 10월 5일
답변: Patrick Broughton 2022년 4월 19일
Hi,
I have a table in Matlab with many rows. I can copy from Matlab and paste into Excel. But the headers are gone. How to copy the headers into Excel as well? Thanks for any help.
JZ

답변 (2개)

Patrick Broughton
Patrick Broughton 2022년 4월 19일
Copy and paste your table. Then run header = string(tableName.Properties.VariableNames); and copy and paste the output into your excel book.

Matthew Eicholtz
Matthew Eicholtz 2016년 10월 5일
Try using writetable instead of copy-and-paste.
  댓글 수: 1
JFz
JFz 2016년 10월 6일
I see. But That is slower because you have to write it into a file. I would like to just copy it into a spreadsheet that already has some data and I can do some comparison.

댓글을 달려면 로그인하십시오.

카테고리

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