フィルターのクリア

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 Center および File ExchangeData 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