... | ... | @@ -43,7 +43,7 @@ The component info structure contains the following fields: |
|
|
* **Order** : ---__----___---__----___---___----__----___---___
|
|
|
* **Flags**: The array containing a 0 or 1 for each component. 1 indicating this component will be marked.
|
|
|
|
|
|
:so: :b: Sub structure 1 for each of the info structures is created with the *label* **manual**. This structure is usually a dependent array based off of the location of the other independent flag structures. See
|
|
|
:so: :b: Sub structure 1 for each of the info structures is created with the *label* **manual**. This structure is usually a dependent array based off of the location of the other independent flag structures. See [Creating Marks by Script](https://git.sharcnet.ca/bucanl_eeglab_extensions/vised_marks/wikis/vised) to find the code that does this.
|
|
|
|
|
|
**Example of Time Flags**
|
|
|
|
... | ... | @@ -67,6 +67,21 @@ The component info structure contains the following fields: |
|
|
| 9 | 0 | 1 | 1 |
|
|
|
| 10 | 1 | 1 | 1 |
|
|
|
|
|
|
# Useful Commands
|
|
|
Since all the marks structures are simply composed of 0's or 1's there are some useful commands that can be used to quickly isolate the marks. In the example below the *manual* faged channels will be removed from the data set.
|
|
|
|
|
|
**Find**: Will find all of the 1's in the array and return their indexes.
|
|
|
* eg. (x = find(EEG.marks.chan_info(1).flags)) to find out which channels will be removed.
|
|
|
|
|
|
**Find~**: Will find all of the 0's in the array and return their indexes.
|
|
|
* eg. (x = find~(EEG.marks.chan_info(1).flags)) to find out which channels will be remaining .
|
|
|
|
|
|
**Length**: Will return the length of the array.
|
|
|
* eg. (x = length(EEG.marks.chan_info(1).flags)) to find the number of channels.
|
|
|
|
|
|
**Find + Length**: Will find how many indices have been marked.
|
|
|
* eg. (x = length(find(EEG.marks.chan_info(1).flags))) to find out how many channels will be removed.
|
|
|
|
|
|
***
|
|
|
|
|
|
[ :house: **Return to Main Page**](https://git.sharcnet.ca/bucanl_eeglab_extensions/vised_marks/wikis/home)
|
... | ... | |