... | ... | @@ -69,7 +69,7 @@ cfg['labels'] = ['Fp1', 'ECG', 'A1', 'A2-A3'] |
|
|
````
|
|
|
Note: 'A2-A3' will request a bipolar channel, this will be applied on the fly by AnyWave.
|
|
|
|
|
|
Electrodes labels must exist or will be skipped. You may have errors or an empty variable as the result of the request.
|
|
|
Electrodes labels must exist or will be ignored. You may have errors or an empty variable as the result of the request.
|
|
|
### Get channels by their types
|
|
|
Get EEG channels or EEG and ECG for example:
|
|
|
````matlab
|
... | ... | @@ -110,17 +110,17 @@ output = anywave('get_data', cfg); % data will be appended to the same output s |
|
|
cfg = {'data_chunks' : [0, 10, 2, 4] }
|
|
|
output = anywave.get_data(cfg)
|
|
|
````
|
|
|
## I want several data chunks splitted
|
|
|
## I want several data chunks
|
|
|
Sometimes you want to get data chunks and apply processing on each ones.
|
|
|
You must specify the split_data option when requesting data:
|
|
|
````matlab
|
|
|
cfg = [];
|
|
|
cfg.data_chunks = [ 1 10 2 4 ]; % specify several time selections at once
|
|
|
cfg.split_data = true; % key option to specify splitted data as result
|
|
|
cfg.split_data = true; % key option to get chunks of data as result
|
|
|
output = anywave('get_data', cfg);
|
|
|
%%
|
|
|
% output is a struct array. The number of elements is the number of data chunks requested.
|
|
|
% As there are splitted each element contains the data and information of one data chunk.
|
|
|
% Each element contains the data and information of one data chunk.
|
|
|
%%
|
|
|
````
|
|
|
````python
|
... | ... | |