Combine data from text files into 1?
Show older comments
I have equipment that gives us data at 3 frequency ranges. Each range (High, Mid, Low), has its own text file with 7 headers and 3 columns of data. How would I combine these 3 data sets so that they go from Lows to Highs and have no headers? I added the first handful of rows for each frequency as an example.
High:
Test Type: SE
Test Point Information: H HF
Fiber Gain dB External attenuation dB
! 50 0
Test Parameters - Start Frequency: Stop Frequency: RBW: Number of Points:
! 200000000 1000000000.00001 30 200
Frequency Amplitude SE
200000000 -95.7444746348 105.8548329235
201624084.182 -94.8430797684 105.586601757
203261356.611 -105.026149057 113.9170141066
204911924.381 -98.2910069978 110.6246375614
206575895.456 -104.618037004 114.6189605781
Mid:
Test Type: SE
Test Point Information: H MF
Fiber Gain dB External attenuation dB
! 50 0
Test Parameters - Start Frequency: Stop Frequency: RBW: Number of Points:
! 20000000 198852014.790596 30 394
Frequency Amplitude SE
20000000 -88.182304421 120.9731205046
20115461.26 -94.3640015779 127.6628331846
20231589.085 -95.81268609200001 129.5194587399
20348387.324 -98.3275216973 131.9908467909
Low:
Test Type: SE
Test Point Information: H LF
Fiber Gain dB External attenuation dB
! 50 0
Test Parameters - Start Frequency: Stop Frequency: RBW: Number of Points:
! 10000 19654172 30 200
Frequency Amplitude SE
10000 -73.7473367895 32.2434412276
10387 -77.5007700307 36.59746393959999
10790 -76.8728977036 36.36316745000001
11208 -76.2866404235 36.27402701850001
11642 -83.5528747158 43.83786599699999
Accepted Answer
More Answers (0)
Categories
Find more on String in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

