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

조회 수: 1 (최근 30일)
Pratik Panchal
Pratik Panchal 2018년 6월 6일
댓글: Image Analyst 2019년 11월 7일
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
Aneesha
Aneesha 2019년 11월 7일
so did u write the code to open the files automatically from the folders?
Image Analyst
Image Analyst 2019년 11월 7일
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.

댓글을 달려면 로그인하십시오.

답변 (2개)

Image Analyst
Image Analyst 2018년 6월 6일

Pratik Panchal
Pratik Panchal 2018년 6월 7일
thanks for answering. :)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by