Using the title from CSV files in a folder as a function

3 ビュー (過去 30 日間)
Jaffatron
Jaffatron 2016 年 5 月 25 日
回答済み: Walter Roberson 2016 年 5 月 25 日
I have a folder of csv files (300 or so) I want to use each in a function to read it into Matlab. What I mean is I want to create an array (structure?) with the title of each csv file as an element, lets called it my_csv.
I then want to use a for loop to call each one individually, so
x = [];
for i = 1: length(my_csv)
x_new = my_function(my_csv(i));
x = [x, x_new];
end
Any help would be much appreciated

採用された回答

Walter Roberson
Walter Roberson 2016 年 5 月 25 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by