neuromodulation / perceive

This repository contains MATLAB code to extract data from the Medtronic Percept bidirectional brain computer interface device for adaptive deep brain stimulation.
http://icneuromodulation.org
Apache License 2.0
35 stars 16 forks source link

Empty datetime arrays #10

Closed tsieger closed 3 years ago

tsieger commented 3 years ago

When left / right side is missing and DTL or DTR is set to [], setdiff(DTR,DTL)]) fails:

Comparison is not defined between datetime and double arrays.
Error in perceive (line 323)
                        DT=sort([DTL,setdiff(DTR,DTL)]);

Fixed with initializing the empty arrays with datetime([],[],[]), not [].

neumann-wj commented 3 years ago

Thanks!