How to read in data in matlab from text files in a folder automatically?

1 visualización (últimos 30 días)
Hello,
I have a folder with text files that contains 40 columns with first row containing headers and rest of the rows with various values. I want to write a code in which we select just the folder and matlab read in data from the text files, imports each column as column vector and saves the files with text file name.
Can anyone guide me how to approach this problem to generate the code?
  2 comentarios
Aneesha
Aneesha el 7 de Nov. de 2019
so did u write the code to open the files automatically from the folders?
Image Analyst
Image Analyst el 7 de Nov. de 2019
I imagine he did, using the code from the FAQ, like in the link I gave below. If you need to also, I recommend that you also look in the FAQ instead of waiting who-knows-how-long for Pratik to answer you.

Iniciar sesión para comentar.

Respuestas (2)

Image Analyst
Image Analyst el 6 de Jun. de 2018

Pratik Panchal
Pratik Panchal el 7 de Jun. de 2018
thanks for answering. :)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by