LabKit MATLAB Workbench

reference

API ReferenceGamry DTA Files

labkit.dta.getColumn

Extract a named column from a parsed DTA table.

Syntax

col = labkit.dta.getColumn(tbl, name)

Description

Finds the first header that matches name without regard to letter case and returns the corresponding numeric data column. The function does not convert units or remove NaN values.

Inputs

tbl
Scalar parsed table or curve structure with headers and data fields. data has one column for each element of headers.
name
Character vector or string scalar naming the requested header.

Outputs

col
Numeric column vector from tbl.data, or [] when no header matches.

Failure Behavior

A missing header returns []. tbl must expose corresponding headers and data fields; malformed structures or an out-of-range data layout raise the originating MATLAB field or indexing error.

Typical Call

timeSec = labkit.dta.getColumn(item.curve, "T");
currentA = labkit.dta.getColumn(item.curve, "Im");

Source

This page is generated from the MATLAB help text in +labkit/+dta/getColumn.m.