How can I open multiple .atf (text files) into different matrices?

Right now I am using the following to open .atf files: a=readtable('Test1.atf','FileType', 'Text', 'Delimiter', '\t', 'HeaderLines', 2) This will read the file and create a matrix while removing the first 2 header rows.
Unfortunately, this will only open one file at a time based on the name I have written in the line. Is there a way to open multiple files at once and store them into different tables?
So the first .atf file in the directory will go into one matrix, the next into another, and so on.
Thanks for the help!

Answers (1)

2 Comments

Thank you, this helps but unfortunately every file is overwriting the previous file so only the last file in the folder is saved. Do you have any ideas on how to fix this?
You are writing the whole data into the same file I think. Check it. If not attach the code here will check.

Sign in to comment.

Asked:

on 30 Nov 2016

Commented:

on 1 Dec 2016

Community Treasure Hunt

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

Start Hunting!