reference
API Reference › Gamry DTA Files
labkit.dta.getZCurve
Select the impedance table from parsed EIS data.
Syntax
[curve, ok, msg] = labkit.dta.getZCurve(tables)Description
First selects a table named ZCURVE. If that name is absent, selects the first table whose headers include Freq, Zreal, and Zimag, using case-insensitive comparisons.
Inputs
tables- Structure array of parsed DTA tables. Each element is expected to contain name, headers, and data fields.
Outputs
curve- Selected impedance table structure, or an empty structure on failure.
ok- Logical scalar indicating whether a table was selected.
msg- Character vector naming the selected table or stating that a ZCURVE table was not found.
Failure Behavior
Empty input or no impedance table returns curve=struct(), ok=false, and a diagnostic message. Nonempty elements must expose name and headers fields; malformed table structures raise the originating MATLAB field-access error.
Typical Call
[curve, ok, msg] = labkit.dta.getZCurve(item.tables);
if ok
frequencyHz = labkit.dta.getColumn(curve, "Freq");
endRelated APIs
labkit.dta.getColumn— Extract a named column from a parsed DTA table.labkit.dta.loadFile— Read one supported Gamry DTA file.labkit.dta.detectPulses— Locate cathodic and anodic pulse windows in chrono data.labkit.dta.detectType— Identify the supported Gamry DTA data family in a file.labkit.dta.findFiles— Find DTA files in a folder and its subfolders.labkit.dta.getCurveXY— Extract paired X and Y data from a parsed CV/CT curve.labkit.dta.getMainCurve— Select the transient table containing T, Vf, and Im data.labkit.dta.loadFiles— Read a list of Gamry DTA files.
Source
This page is generated from the MATLAB help text in +labkit/+dta/getZCurve.m.