You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run the feature extraction code for a single .edf file in a folder, which I have specified in main.m. However, there are several problems:
Problem 1) When running main.m, in preprocessing.m channel labels turn out like this:
labels_tmp = cell(length(labels),1);
for k = 1:length(labels)
for j = 1:length(labels{k})
labels_tmp{k}(j) = labels{k}(j);
end
labels_tmp{k} = ['EEG ' strtrim(labels_tmp{k})];
end
labels = labels_tmp;
Problem 3) When that is fixed, preprocessing starts to work, but I always get
Warning: Could NOT processs artefact removal.
> In preprocess (line 85)
In init_Preprocessing (line 52)
In processBTVisual (line 50)
In main (line 21)
Continue without artefact rejection? Y/N:
Problem 4) If I keep spamming Y for all channels, processing starts, the code always eventually crashes to:
Analyzing and transferring files to the workers ...done.
Error using wavelet_coeff_toronto
An UndefinedFunction error was thrown on the workers for ‘wfilters’. This might be because the file containing ‘wfilters’ is not accessible on the workers. Use addAttachedFiles(pool, files) to specify the required files to be
attached. For more information, see the documentation for ‘parallel.Pool/addAttachedFiles’.
Error in extractFeatures (line 55)
parfor ch = 1 : size(eeg_seg_accepted, 1)
Error in calEpochFeatures (line 50)
feats = extractFeatures(eeg_seg,fs,features,labels,artefactThreshold);
Error in init_featureExtraction (line 49)
[feats]=calEpochFeatures(eeg_data,fs_new,epochs,...
Error in processBTVisual (line 56)
[FeatureMatrix] = init_featureExtraction(data,epochs,featurelist,‘’,artefactThreshold);
Error in main (line 21)
processBTVisual(pathToPatient)
Caused by:
Undefined function ‘wfilters’ for input arguments of type ‘char’.
The text was updated successfully, but these errors were encountered:
I'm running MATLAB R2022b on MacOS.
I'm trying to run the feature extraction code for a single .edf file in a folder, which I have specified in main.m. However, there are several problems:
Problem 1) When running
main.m
, inpreprocessing.m
channel labels turn out like this:which I can fix with:
After which my labels are
Problem 2)
last_channel
definition does not work if there is no P4 (like this example file from Sampsa V.). I fixed it with thisProblem 3) When that is fixed, preprocessing starts to work, but I always get
Problem 4) If I keep spamming Y for all channels, processing starts, the code always eventually crashes to:
The text was updated successfully, but these errors were encountered: