필터 지우기
필터 지우기

transfer a table into a text file

조회 수: 2 (최근 30일)
me
me 2015년 11월 7일
댓글: Geoff Hayes 2015년 11월 8일
I have converted the cell of different data types(char, string, double) into a table; dose anyone know how I can transfer the table into a text file.

답변 (1개)

Geoff Hayes
Geoff Hayes 2015년 11월 7일
me - try using writetable which will write the table to a comma delimited file.
  댓글 수: 2
me
me 2015년 11월 8일
the table can be seen to the right, and the error I get when using writetable can be seen in the C.W.. Do you have any other suggestions?
Geoff Hayes
Geoff Hayes 2015년 11월 8일
The second input parameter to writetable is the name of (and path to) a file, not a file descriptor. Try
writetable(GPS_Data,'myFile.txt');

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

카테고리

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