LabKit MATLAB Workbench

reference

API ReferenceBiosignal API

labkit.biosignal.listChannels

Return display names for all channels in a recording.

Syntax

names = labkit.biosignal.listChannels(recording)

Description

Returns channel display names in recording order. These are the same names accepted by labkit.biosignal.getChannel and are suitable for a list box or drop-down menu. A recording with no signals returns a 1-by-0 cell array.

Inputs

recording
Recording structure returned by labkit.biosignal.readRecording.

Outputs

names
1-by-N cell array of display-name character vectors.

Errors

labkit:biosignal:InvalidRecording
recording is not a structure with a signals field.

Example

signals(1).displayName = "ECG";
signals(2).displayName = "Respiration";
recording = struct('signals', signals);
names = labkit.biosignal.listChannels(recording);

Source

This page is generated from the MATLAB help text in +labkit/+biosignal/listChannels.m.