Filter löschen
Filter löschen

I want to xlsread in many files

1 Ansicht (letzte 30 Tage)
Jeong_evolution
Jeong_evolution am 4 Jul. 2016
Kommentiert: Jeong_evolution am 4 Jul. 2016
hello.
[num txt raw] = xlsread('1.xlsx')
This code just imported only 1 file.
But i want to import many files.
After imported, in this file I want to average time data.
For example,
12:00 12:01 12:02 ... 01:00 - raw data
12:00 12:15 12:30 ...01:00 - revised data
I want to expression like resvised data in file.

Akzeptierte Antwort

KSSV
KSSV am 4 Jul. 2016
xlfiles = dir('*.xlsx'); % You are in the folder of xl files
Nfiles = length(xlfiles) ; % number of xl files
% loop for each file
for i = 1:Nfiles
fname = xlfiles(i).name ; % file name
data = xlsread(fname) ; % read the file
%%do what you want %%%
end
  1 Kommentar
Jeong_evolution
Jeong_evolution am 4 Jul. 2016
But this code is just imported number.
I want to import with date & Time data.
And average For example,
12:00 12:01 12:02 ... 01:00 - raw data
12:00 12:15 12:30 ...01:00 - revised data
I want to expression like resvised data in file.
What should I do?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by