Prev: No text in plots
Next: RF simulations in simulink
From: Peter Riddersholm on 15 Jun 2010 04:17 Hi, I need to access data in a folder. Each data file is named 19970101.txt 19970102.txt 19970103.txt ....etc... In my script, I need a loop where data from the files will be imported as follows: for i = 1:enddate A = importdata(yyyymmdd.txt); ....manipulating data... end Thanks in advance! /peter
From: Peter Riddersholm on 15 Jun 2010 04:26 Or rather: for yyyymmdd = 19970101:enddate A = importdata(yyyymmdd.txt); ....manipulating data... end "Peter Riddersholm " <peri(a)dmi.dk> wrote in message <hv7cuf$frk$1(a)fred.mathworks.com>... > Hi, > > I need to access data in a folder. Each data file is named > > 19970101.txt > 19970102.txt > 19970103.txt > ...etc... > > In my script, I need a loop where data from the files will be imported as follows: > > for i = 1:enddate > > A = importdata(yyyymmdd.txt); > ...manipulating data... > > end > > Thanks in advance! > > /peter
From: Steven Lord on 15 Jun 2010 09:47 "Peter Riddersholm " <peri(a)dmi.dk> wrote in message news:hv7cuf$frk$1(a)fred.mathworks.com... > Hi, > > I need to access data in a folder. Each data file is named > > 19970101.txt > 19970102.txt > 19970103.txt > ...etc... > > In my script, I need a loop where data from the files will be imported as > follows: *snip* See Q4.12 in the newsgroup FAQ for some examples of how to process a set of files. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com
|
Pages: 1 Prev: No text in plots Next: RF simulations in simulink |