reference
API Reference › Gamry DTA Files
labkit.dta.getMainCurve
Select the transient table containing T, Vf, and Im data.
Syntax
[curve, ok, msg] = labkit.dta.getMainCurve(tables)Description
First selects a table named CURVE or CURVE1. If neither name is present, selects the first table whose headers include T, Vf, and Im, using case-insensitive comparisons. No table is selected when the input is empty or no compatible columns are found.
Inputs
tables- Structure array of parsed DTA tables. Each element is expected to contain name, headers, and data fields.
Outputs
curve- Selected 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 the main transient table was not found.
Failure Behavior
Empty input or no table with the required headers 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.getMainCurve(item.tables);
if ok
timeSec = labkit.dta.getColumn(curve, "T");
endRelated APIs
labkit.dta.getColumn— Extract a named column from a parsed DTA table.labkit.dta.detectPulses— Locate cathodic and anodic pulse windows in chrono data.labkit.dta.loadFile— Read one supported Gamry DTA file.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.getZCurve— Select the impedance table from parsed EIS data.labkit.dta.loadFiles— Read a list of Gamry DTA files.
Source
This page is generated from the MATLAB help text in +labkit/+dta/getMainCurve.m.