| EEG_STORE | Store specified EEG dataset(s) in the ALLEG variable containing all current datasets, after first checking dataset consistency using eeg_checkset. |
| Usage: | >> [ALLEEG EEG index] = eeg_store(ALLEEG, EEG); >> [ALLEEG EEG index] = eeg_store(ALLEEG, EEG, index); |
| Inputs: | |
ALLEEG |
variable containing all current EEGLAB datasets |
EEG |
dataset(s) to store - usually the current dataset. May also be an array of datasets; these will be checked and stored separately in ALLEEG. |
index |
(optional), ALLEEG index (or indices) to use to store the new dataset(s). If no index is given, eeg_store uses the lowest empty slot(s) in the ALLEEG array. |
| Outputs: | |
ALLEEG |
array of all current datasets |
EEG |
EEG dataset (after syntax checking) |
index |
index of the new dataset |
| Note: | When 3 arguments are given, after checking the consistency of the input dataset structures this function simply performs >> ALLEEG(index) = EEG; |
| Typical use: | >> [ALLEEG EEG CURRENTSET] = eeg_store(ALLEEG, EEG); creates a new dataset in variable ALLEEG. >> [ALLEEG EEG CURRENTSET] = eeg_store(ALLEEG, EEG, CURRENTSET); overwrites the current dataset in variable ALLEEG. |
| Author: | Arnaud Delorme, CNL / Salk Institute, 2001 |
| See also: | eeglab(), eeg_checkset, eeg_retrieve |