Been looking for a solution for a while, but have caved for some help.
Basically i need to be able to extract the latter half of the data from the file i have included below. It seems like the grand majority of Matlab commands seem to only extract the first set of numeric data, which is not what i am interested in extracting.
Does anyone have any suggestions as to how to tackle this? I need to collect all data below the 'ZCURVE' text.
Here is where this gets challenging:
- The number of headerlines above the data of interest varies.
- Most MATLAB 2017 commands only extract the first set of data, which is not data of interest.
I have trimmed the file, it is normally a lot longer and is normally in .dta format.
I greatly appreciate any and all help on the matter.
----simplified sample file-----
TITLE LABEL Potentiostatic EIS Test &Identifier
DATE LABEL 8/3/2021 Date
TIME LABEL 16:52:26 Time
NOTES NOTES 1 &Notes...
PSTAT PSTAT REF600-11020 Potentiostat
VDC POTEN 0.00000E+000 T DC &Voltage (V)
FREQINIT QUANT 1.00000E+006 Initial Fre&q. (Hz)
FREQFINAL QUANT 1.00000E+000 Final Fre&q. (Hz)
PTSPERDEC QUANT 1.00000E+001 Points/&decade
VAC QUANT 2.50000E+001 AC &Voltage (mV rms)
AREA QUANT 4.00000E-005 &Area (cm^2)
CONDIT TWOPARAM F 5.00000E+000 0.00000E+000 Conditionin&g Time(s) E(V)
DELAY TWOPARAM F 5.00000E+000 0.00000E+000 Init. De&lay Time(s) Stab.(mV/s)
SPEED SELECTOR 0 &Optimize for:
ZGUESS QUANT 1.00000E+004 E&stimated Z (ohms)
OCVCURVE TABLE 39
Pt T Vf Vm Ach Over
# s V vs. Ref. V V bits
0 0.258333 6.59852E-002 6.59852E-002 4.84743E-004 ...........
1 0.516667 6.59860E-002 6.60275E-002 4.85476E-004 ...........
2 0.775 6.59900E-002 6.60169E-002 4.80143E-004 ...........
EOC QUANT 0.0657299 Open Circuit (V)
PSTATMODEL IQUANT 4 Pstat Model
PSTATSECTION LABEL REF600-11020 Pstat Section
PSTATSERIALNO LABEL 11020 Pstat Serial Number
CTRLMODE IQUANT 1 Control Mode
IESTAB IQUANT 0 I/E Stability
[more of this stuff]
INSTRUMENTVERSION LABEL 3.50 Instrument Version
Pt Time Freq Zreal Zimag Zsig Zmod Zphz Idc Vdc IERange
# s Hz ohm ohm V ohm ° A V #
0 1 1000078 756.6094 -1569.005 1 1741.905 -64.25559 -3.171526E-007 0.0683075 8
1 2 794390.6 907.2675 -1893.579 1 2099.708 -64.39959 1.011809E-006 0.067796 8