How to import data into an array from a .txt file

1 回表示 (過去 30 日間)
Ivan Florentino
Ivan Florentino 2018 年 12 月 21 日
回答済み: madhan ravi 2018 年 12 月 21 日
I have a fairly large file in .txt and im simply trying to import it into my code as an array i tried the import data but it would only give me a blank array with NaN in the cells, the array I am trying to import is structured like so,
12 0.0589 14.122 13.2 0.7954 0.004

回答 (1 件)

madhan ravi
madhan ravi 2018 年 12 月 21 日
Use readtable() to read the file

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT Files についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by