필터 지우기
필터 지우기

How can I get txtscan to read this file?

조회 수: 2 (최근 30일)
David Winthrop
David Winthrop 2022년 9월 21일
댓글: Star Strider 2022년 9월 21일
I tried this but it only seems to have read the first line. There are tabs between columns, I believe.
G = textscan(F,'%15.15f\t%15.15f\t%15.15f\t%15.15f\t%15.15f','headerlines',1)
Thanks

채택된 답변

Star Strider
Star Strider 2022년 9월 21일
It would help to have the file to experiment with.
If textscan is only reaidng the first line, consider adding:
'EndOfLine','\r\n'
That has worked for me in the past.
.
  댓글 수: 2
David Winthrop
David Winthrop 2022년 9월 21일
That got it! Thanks
Star Strider
Star Strider 2022년 9월 21일
As always, my pleasure!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

태그

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by