TEAP (Toolbox for Emotion Analysis using Physiological Signals) doc
Signal__assert_type.m File Reference

Checks that the signal given on the input is of the type nameWanted This function is mainly used by SSS_assert_type(Sig), with params Sig and SSS. More...

Go to the source code of this file.

Functions

function Signal__assert_type (in Signal, in nameWanted)
 

Detailed Description

Checks that the signal given on the input is of the type nameWanted This function is mainly used by SSS_assert_type(Sig), with params Sig and SSS.

Definition in file Signal__assert_type.m.

Function Documentation

◆ Signal__assert_type()

function Signal__assert_type ( in  Signal,
in  nameWanted 
)
Attention
NOTA BENE: in the case that Signal is a BULK signal, this function will return, if it exists, the wanted signal, or fail if it doesn't.
Parameters
SignalThe signal you want to make sure of the type (can be a BULK signal, in that case, will take the component. Bulk: if the input is a bulk than the bulk is also returned to keep a backup of it. An empty vector is returned if the input is not a Bulk
nameWantedthe type the signal must be of (ex: 'GSR').
Return values
Signalthe signal. Can be the same as the input if single signal, or the signal from the bulk if the input signal is a bulk one.