reference
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);Related APIs
labkit.biosignal.getChannel— Return one signal from a recording by display name or index.labkit.biosignal.readRecording— Read a biosignal file into a standard recording struct.labkit.biosignal.buildTemplate— Build a representative segment template.labkit.biosignal.compareGroups— Summarize groups and compute pairwise Welch comparisons.labkit.biosignal.cropSignal— Return a signal clipped to a time range in seconds.labkit.biosignal.defaultEcgPeakOptions— Return documented defaults for ECG/QRS peak detection.labkit.biosignal.detectEcgPeaks— Detect ECG/QRS peaks as event anchors.labkit.biosignal.filterSignal— Apply a zero-phase FFT-domain filter to a biosignal.
Source
This page is generated from the MATLAB help text in +labkit/+biosignal/listChannels.m.