reading in 2 data files

2 次查看(过去 30 天)
Michael
Michael 2011-6-15
I have a program that basically reads in a .EVT file and then analyzes it and parses data from it. The program then reads in a .TXT file and uses some information from the .EVT file to store more data. The problem is that the time frames for both files might not match up, so I might need to read in 2 of the .EVT files in order to ensure that the text file lines up with it. For example, the text file might contain data from DOY 150-152 while the EVT file's data is from days 151-155. Any way to account for this?
Here is how i read in the EVT file:
EVT = uigetdir('','Browse to select .EVT data folder'); cd(EVT); EVT_file = uigetfile('*.EVT','Select the input EVT <a>file:')</a>; disp(['Processing file ',EVT_file]) hid_EVT = fopen(EVT_file); H = textscan(hid_EVT,'%s','delimiter',','); H2 = [H{:}];
I use H2 to find the information I need using indexing.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by