how to use dlmwrite for excel sheet has three columns

조회 수: 4 (최근 30일)
Sukhpal Kaur
Sukhpal Kaur 2019년 11월 28일
댓글: Sukhpal Kaur 2019년 11월 28일
I have an excel file which has contain data into three columns. I want to change file type excel into .dat file using dlmwrite command. File type has changed but problem is that three columns data merge into one common. Now how to correct this?

답변 (1개)

KSSV
KSSV 2019년 11월 28일
T = readtable('myexcelfile.xlsx') ;
writetable(T,'out.dat') ;
  댓글 수: 1
Sukhpal Kaur
Sukhpal Kaur 2019년 11월 28일
When i using the above command for read table the excel file is reduced by one row. for exampe suppose i have 10 rows and three columns then after using readtable command the workspace shows 9 row and three columns instead of 10 and 3. After compliting the whole command it is showing
error using load
unknown text on line no. 1 of ASCII file...... "x"
At the end .dat file is not build.

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by