Azzera filtri
Azzera filtri

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 visualizzazione (ultimi 30 giorni)
*

Risposta accettata

KSSV
KSSV il 13 Ott 2016
d = dir('*.txt');
nfiles = length(d);
for k = 1:nfiles
data = importdata(d(k).name);
% get mean
end
Doc mean
  2 Commenti
Bhargavkrishna Kondreddy
Bhargavkrishna Kondreddy il 14 Ott 2016
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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Statistics and Machine Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by