Reading a text file and saving as a 3x5 array problems?
1 回表示 (過去 30 日間)
古いコメントを表示
I'm not sure how to get matlab R2019a to read and save this text file as an array? All the examples people have uploaded and found answers to don't actually seem to print the values for me.
To be more specific, I would like the 5 lines to be displayed;
1.80 352 N Calm
2.70 346 N Light Air
3.60 346 N Light Air
2.70 346 N Light Air
2.70 346 N Light Air
7 件のコメント
Rik
2021 年 4 月 6 日
It sounds like you would benefit from a basic Matlab tutorial.
filename='datalog.txt';
raw_data=readfile(filename);
Then you can do the parsing of each line.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Import and Export についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!