reading in 2 data files
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!