필터 지우기
필터 지우기

print array in an excel file and in two separate columns

조회 수: 3 (최근 30일)
Hoque
Hoque 2018년 9월 24일
댓글: Bish Erbas 2018년 9월 24일
How can I print this array in an excel file and in two separate columns?
n =
813 4
428 6
314 3
740 5
579 4

답변 (1개)

Bish Erbas
Bish Erbas 2018년 9월 24일
Try:
xlswrite('test.xlsx',n)
  댓글 수: 2
Hoque
Hoque 2018년 9월 24일
Actually, I tried this but doesn't work. I get following error msg:
Warning: Unable to write to Excel format, attempting to write file to csv format. To write to an Excel file, convert your data to a table and use writetable.
Bish Erbas
Bish Erbas 2018년 9월 24일
My answer assumes n is a workspace variable. Make sure you see n as a numerical matrix in the workspace.

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

카테고리

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