how to load multiple asc files from a directory

6 ビュー (過去 30 日間)
Viktor G.
Viktor G. 2020 年 7 月 30 日
コメント済み: Cris LaPierre 2020 年 7 月 31 日
So i know that i should import my files using
A=readtable('file1.asc','Filetype','text');
however i want to be able to import all of the files trough a loop because there are more than 300, and they all have some random names. Can anyone help me with reading the files in the folder and then creating a loop that could later load all of my asc files?
thank you

採用された回答

Cris LaPierre
Cris LaPierre 2020 年 7 月 30 日
I would look into using a datastore. Here's a video demonstrating how to read multiple csv files using an import function with datastore from our Data Processing and Feature Engineering course.
  2 件のコメント
Viktor G.
Viktor G. 2020 年 7 月 31 日
actually this didn't work for me since it is a large amount of data. I would like to use a loop that saves each asc file as separate table
Cris LaPierre
Cris LaPierre 2020 年 7 月 31 日
In that case, consider looking into how to analyze big data in MATLAB.
To use a for loop, see this post.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStandard File Formats についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by