I did the first option
I get this code
% Start a new report
bst_report('Start', sFiles);
% Process: Scout time series: [157 scouts]
sFiles = bst_process('CallProcess', 'process_extract_scout', sFiles, [], ...
'timewindow', [], ...
'scouts', {'Volume 14961: AAL3', {'Left Amygdala', 'Left Angular gyrus', 'Left Anterior cingulate cortex-pregenual', 'Left Anterior cingulate cortex-subgenual', 'Left Anterior cingulate cortex-supracallosal', 'Left Anterior orbital gyrus', 'Left Calcarine fissure and surrounding cortex', 'Left Caudate nucleus', 'Left Crus I of cerebellar hemisphere', 'Left Crus II of cerebellar hemisphere', 'Left Cuneus', 'Left Fusiform gyrus', 'Left Gyrus rectus', 'Left Heschls gyrus', 'Left Hippocampus', 'Left IFG pars orbitalis', 'Left Inferior frontal gyrus-opercular part', 'Left Inferior frontal gyrus-triangular part', 'Left Inferior occipital gyrus', 'Left Inferior parietal gyrus-excluding supramarginal and angular gyri', 'Left Inferior temporal gyrus', 'Left Insula', 'Left Intralaminar', 'Left Lateral geniculate', 'Left Lateral orbital gyrus', 'Left Lateral posterior', 'Left Lenticular nucleus-Pallidum', 'Left Lenticular nucleus-Putamen', 'Left Lingual gyrus', 'Left Lobule III of cerebellar hemisphere', 'Left Lobule IV-V of cerebellar hemisphere', 'Left Lobule IX of cerebellar hemisphere', 'Left Lobule VI of cerebellar hemisphere', 'Left Lobule VIIB of cerebellar hemisphere', 'Left Lobule VIII of cerebellar hemisphere', 'Left Lobule X of cerebellar hemisphere', 'Left Medial Geniculate', 'Left Medial orbital gyrus', 'Left Mediodorsal lateral parvocellular', 'Left Mediodorsal medial magnocellular', 'Left Middle cingulate & paracingulate gyri', 'Left Middle frontal gyrus', 'Left Middle occipital gyrus', 'Left Middle temporal gyrus', 'Left Nucleus accumbens', 'Left Olfactory cortex', 'Left Paracentral lobule', 'Left Parahippocampal gyrus', 'Left Postcentral gyrus', 'Left Posterior cingulate gyrus', 'Left Posterior orbital gyrus', 'Left Precentral gyrus', 'Left Precuneus', 'Left Pulvinar anterior', 'Left Pulvinar inferior', 'Left Pulvinar lateral', 'Left Pulvinar medial', 'Left Red nucleus', 'Left Rolandic operculum', 'Left Substantia nigra-pars compacta', 'Left Substantia nigra-pars reticulata', 'Left Superior frontal gyrus-dorsolateral', 'Left Superior frontal gyrus-medial', 'Left Superior frontal gyrus-medial orbital', 'Left Superior occipital gyrus', 'Left Superior parietal gyrus', 'Left Superior temporal gyrus', 'Left Supplementary motor area', 'Left SupraMarginal gyrus', 'Left Temporal pole: middle temporal gyrus', 'Left Temporal pole: superior temporal gyrus', 'Left Ventral anterior', 'Left Ventral lateral', 'Left Ventral posterolateral', 'Left Ventral tegmental area', 'Lobule I-II of vermis', 'Lobule III of vermis', 'Lobule IV-V of vermis', 'Lobule IX of vermis', 'Lobule VI of vermis', 'Lobule VII of vermis', 'Lobule VIII of vermis', 'Lobule X of vermis', 'Right Amygdala', 'Right Angular gyrus', 'Right Anterior cingulate cortex-pregenual', 'Right Anterior cingulate cortex-subgenual', 'Right Anterior cingulate cortex-supracallosal', 'Right Anterior orbital gyrus', 'Right Calcarine fissure and surrounding cortex', 'Right Caudate nucleus', 'Right Crus I of cerebellar hemisphere', 'Right Crus II of cerebellar hemisphere', 'Right Cuneus', 'Right Fusiform gyrus', 'Right Gyrus rectus', 'Right Heschls gyrus', 'Right Hippocampus', 'Right IFG pars orbitalis', 'Right Inferior frontal gyrus-opercular part', 'Right Inferior frontal gyrus-triangular part', 'Right Inferior occipital gyrus', 'Right Inferior parietal gyrus-excluding supramarginal and angular gyri', 'Right Inferior temporal gyrus', 'Right Insula', 'Right Intralaminar', 'Right Lateral geniculate', 'Right Lateral orbital gyrus', 'Right Lateral posterior', 'Right Lenticular nucleus-Pallidum', 'Right Lenticular nucleus-Putamen', 'Right Lingual gyrus', 'Right Lobule III of cerebellar hemisphere', 'Right Lobule IV-V of cerebellar hemisphere', 'Right Lobule IX of cerebellar hemisphere', 'Right Lobule VI of cerebellar hemisphere', 'Right Lobule VIIB of cerebellar hemisphere', 'Right Lobule VIII of cerebellar hemisphere', 'Right Lobule X of cerebellar hemisphere', 'Right Medial orbital gyrus', 'Right Mediodorsal lateral parvocellular', 'Right Mediodorsal medial magnocellular', 'Right Middle cingulate & paracingulate gyri', 'Right Middle frontal gyrus', 'Right Middle occipital gyrus', 'Right Middle temporal gyrus', 'Right Nucleus accumbens', 'Right Olfactory cortex', 'Right Paracentral lobule', 'Right Parahippocampal gyrus', 'Right Postcentral gyrus', 'Right Posterior cingulate gyrus', 'Right Posterior orbital gyrus', 'Right Precentral gyrus', 'Right Precuneus', 'Right Pulvinar anterior', 'Right Pulvinar inferior', 'Right Pulvinar lateral', 'Right Pulvinar medial', 'Right Red nucleus', 'Right Rolandic operculum', 'Right Substantia nigra-pars compacta', 'Right Substantia nigra-pars reticulata', 'Right Superior frontal gyrus-dorsolateral', 'Right Superior frontal gyrus-medial', 'Right Superior frontal gyrus-medial orbital', 'Right Superior occipital gyrus', 'Right Superior parietal gyrus', 'Right Superior temporal gyrus', 'Right Supplementary motor area', 'Right SupraMarginal gyrus', 'Right Temporal pole: middle temporal gyrus', 'Right Temporal pole: superior temporal gyrus', 'Right Thalamus-Anteroventral Nucleus', 'Right Ventral anterior', 'Right Ventral lateral', 'Right Ventral posterolateral'}}, ...
'flatten', 1, ...
'scoutfunc', 'mean', ... % Mean
'pcaedit', struct(...
'Method', 'pca', ...
'Baseline', [0, 0.998], ...
'DataTimeWindow', [0, 0.998], ...
'RemoveDcOffset', 'file'), ...
'isflip', 1, ...
'isnorm', 0, ...
'concatenate', 0, ...
'save', 1, ...
'addrowcomment', 1, ...
'addfilecomment', []);
% Save and display report
ReportFile = bst_report('Save', sFiles);
bst_report('Open', ReportFile);
% bst_report('Export', ReportFile, ExportDir);
% bst_report('Email', ReportFile, username, to, subject, isFullReport);
% Delete temporary files
% gui_brainstorm('EmptyTempFolder');
Then I get this error.
>> extract_modified_2
Error: File: extract_modified_2.m Line: 69 Column: 8
Unsupported use of the '=' operator. To compare values for equality, use '=='. To specify name-value arguments,
check that name is a valid identifier with no surrounding quotes.
I don't understand because it had worked before. But it concatenated everything in one file and it was with PCA not Mean (scout time function).
EDIT: Edited for readability