How to split and save .txt columns using for loop
古いコメントを表示
Right now I have N number of .txt files imported with each consisting of two columns. My question is how can I split each .txt file into individual columns using a for loop. If the .txt files are saved as text_1, text_2...text_N, and I want each column of text_1 to be split into variables t1 and v1(text_2 into t2 &v2), how can I write a for loop to achieve this.
Thanks
1 件のコメント
Stephen23
2016 年 9 月 10 日
Import the columns into a cell array. Avoid dynamically creating variable names.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および 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!