Discrepancy in signalLabeler AutomatedValue Function with Multi-channel Data??

11 次查看(过去 30 天)
I am working with the signalLabeler in MATLAB and attempting to use the AutomatedValue function as described in the template here:
openExample('signal/LabelQRSComplexesECGSignalsUsingTrainedDeepNetworkExample')
.
However, contrary to the documentation, when I call the custom function within signalLabeler, the input 'x' is passed as a single-dimension vector rather than a multi-channel matrix or cell array. This inconsistency is also reflected in the provided example, where 'x' is used as one-channel data and the for-loop seems redundant. Also, when I select multiple channels in signalLabeler, the 'x' passed to function is still one-channel data. How can I address this to work with multi-channel ECG data as intended by the function's template?

回答(1 个)

Ayush Modi
Ayush Modi 2024-1-10
Hi,
The example in the link provided (https://au.mathworks.com/help/signal/ug/label-qrs-complexes-and-r-peaks-of-ecg-signals-using-deep-network.html) is to demonstrate how you can pass a signal variable (Single or Multi-channel). The for-loop is there to handle both of these cases.
Assuming you are trying to pass a multi-channel signal into the parameter “x”, I replicated the steps mentioned in the example and replaced the signal with my own multi-channel signal (4 channels).
Furthermore, I have added the below line of code to check the size of the signal in the “findQRS” custom function to check the number of channels received in "x":
size(x,2)
The output returned for the above code during execution of the code was 4.
I hope this helps you in understanding the example better.

类别

Help CenterFile Exchange 中查找有关 EEG/MEG/ECoG 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by