How to split and save .txt columns using for loop
Mostrar comentarios más antiguos
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 comentario
Stephen23
el 10 de Sept. de 2016
Import the columns into a cell array. Avoid dynamically creating variable names.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Data Import and Export en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!