|
|
[[_TOC_]]
|
|
|
# Creating Marks by Script
|
|
|
Marks can also be generated from a flag structure based on any criteria you would like. The example below calls the function *chan_neighbour_r* which creates an array based on the statistical difference between channels. If these channels are to ?????similar ?????different than they will be assigned a value value of 1 while the good channels remain at 0. This way all of the bad channels can be isolated using the marks structure and then dealt with accordingly.
|
|
|
|
|
|
|
|
|
:b: Code snippets from BUCANL *eeglab_pipe_asr_amica* pipeline: *scalpart.htb* script.
|
|
|
# Creating Marks by Using Scripts
|
|
|
Marks can also be generated from a flag structure based on any criteria you would like. Cretaing functions that test the data for particular features is most easily done by generating a script.
|
|
|
:b: The following code snippets are from the BUCANL *eeglab_pipe_asr_amica* pipeline: *scalpart.htb* script.
|
|
|
The example below calls the function *chan_neighbour_r* which creates an array based on the statistical difference between channels. If these channels are to ?????similar ?????different than they will be assigned a value value of 1 while the good channels remain at 0. This information is then stored in the EEG.marks.chan_info(???).flags array. This way all of the bad channels can be isolated using the marks structure and then dealt with accordingly.
|
|
|
|
|
|
```matlab
|
|
|
% Edit chanflaginfo structure
|
... | ... | |