Discrepancy in signalLabeler AutomatedValue Function with Multi-channel Data??
조회 수: 2 (최근 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?
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!