필터 지우기
필터 지우기

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