How to import specific columns from multiple text files into a single numeric array?
1 ビュー (過去 30 日間)
I am extremely new to Matlab and have a question on how to import specific columns from multiple text files into a single numeric array. I have 5 text files all in a single directory. I would like to read in the second column of numbers from each of these 5 files into a single numeric array and export that array to a new text file with a new name. Is there a simple way to do this?
David Hill 2021 年 1 月 26 日
a=readmatrix(sprintf('yourFile%d.txt',k));%name files consistently with number at end