Borrar filtros
Borrar filtros

reading in 2 data files

2 visualizaciones (últimos 30 días)
Michael
Michael el 15 de Jun. de 2011
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.

Respuestas (0)

Categorías

Más información sobre Data Import and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by