How to import multiple sdat or dat files from a folder to indiviudal table format

1 view (last 30 days)
hello,
I have 35 sdat files. I dont want to import them individaully by going in import matlab tool and then importing them as a table format.
Is there a way to succesfully import all these files as individual tables..i have tried this
p=dir('*.sdat');
T = struct2table(p);
but it creates 34x6 table..what i want is individual tables as if we load these by matlab import tool seperatley.

Answers (0)

Categories

Find more on Weather and Atmospheric Science in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!