fft function error while extracting EEG signals in EDF file
14 views (last 30 days)
I want to extract different waves in EEG signals and quantilize their absolute power. However, some errors impeded my way of further exploration.
[header,data] = edfread("preprocessedEEG.edf");
S = data;
Then, an error came as "Error using fft Invalid data type. First argument must be double, single, int8, uint8, int16, uint16, int32, uint32, or logical."
Totally have no idea of the error. Is that because of my EDF file had some "NaN" data? or I just misused the fft function? How can I move on my analysing? I really need your help.
Star Strider on 12 Aug 2022
According to the edfread documentation, the ‘data’ are the first output, not the second.
The assignments should probably be:
[data,header] = edfread("preprocessedEEG.edf");
instead. (I cannot test this since I do not have the file.)