フィルターのクリア

i had 200 .txt files each having four columns and 2000 rows . i want to import them into matlab and find average of each column .Please help me in coding this

1 回表示 (過去 30 日間)
*

採用された回答

KSSV
KSSV 2016 年 10 月 13 日
d = dir('*.txt');
nfiles = length(d);
for k = 1:nfiles
data = importdata(d(k).name);
% get mean
end
Doc mean
  2 件のコメント
Bhargavkrishna Kondreddy
Bhargavkrishna Kondreddy 2016 年 10 月 14 日
Thanks for the help but i am getting an error in import data statement " reference to non existent field Imageset1_001, which is name of the first.txt file
KSSV
KSSV 2016 年 10 月 15 日
Check is d(i).name are matching with the files in the folder?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by