How can I read array from a text file?
古いコメントを表示
I have a lot of text files in the form:
(0000000000)
(2020231032)
(0222320033)
(3120030223)
(0001132233)
And I want to import them as arrays. When I get rid of the clammers and use dlmread, it reads each row as one big number, but I need them as row vectors of the given length. Is there a way to read the file as the array I wish, or maybe a function that inserts comma after every number?
2 件のコメント
Ameer Hamza
2020 年 3 月 21 日
How do you want to load each row into array? Giving an example output based on the lines in question will be helpful
Angel Dimitrov
2020 年 3 月 21 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!