Trouble reading '.txt' file
Show older comments
Hi,
I am trying to read the following '.txt' file,
XL2 Sound Level Meter RTA Reporting: GnT2\2018-03-13_SLM_007_RTA_3rd_Report.txt ------------------------------------
- Hardware Configuration Device Info: XL2, SNo. A2A-07528-E0, FW3.33 Mic Type: NTi Audio M2230, SNo. 3142, User calibrated 2018-03-13 13:53 Mic Sensitivity: 42.8 mV/Pa Time Zone: UTC+00:00 (Europe/London)
- Measurement Setup Profile: Full mode Append mode: OFF Timer mode: single Timer set: 00:00:06 Resolution: 1/3 Octave Range: 40 - 140 dB
- Time Start: 2018-03-13, 14:14:54 End: 2018-03-13, 14:15:00
- RTA Results Band [Hz] 6.3 8.0 10.0 12.5 16.0 20.0 LAFmax -5.3 2.2 3.9 1.6 -0.5 1.6 LAeq -10.8 -6.0 -4.3 -8.1 -9.3 -10.2
#CheckSum 78CAFBEC8E1653CCB8E561D8ED1C5D4F
I have tried various different functions like textread textscan and so on but I keep getting errors, in particular when i try textread i get this: * * * _ _Error using dataread Trouble reading number from file (row 1, field 1) ==> XL2 Sound Level Meter RTA Reporting: GnT2\201
Error in textread (line 168) [varargout{1:nlhs}]=dataread('file',varargin{:}); %#ok<REMFF1>_ _*
The only data I want to extract is the values after LAeq (i.e : -10.8 -6.0 -4.3 -8.1 -9.3 -10.2) Can someone help me?
Thanks
1 Comment
Jan
on 24 May 2018
Please post the code. Then it is much easier to suggest a modification.
Accepted Answer
More Answers (0)
Categories
Find more on Characters and Strings 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!