How to split and save .txt columns using for loop
Show older comments
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 Comment
Stephen23
on 10 Sep 2016
Import the columns into a cell array. Avoid dynamically creating variable names.
Accepted Answer
More Answers (0)
Categories
Find more on Data Import and Export in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!