You can also copy one OpenMEEG head model to all the other folders and subjects with a single click:
right-click on the head model > Copy to other folders/subjects .
If you want to do this programmatically, the function to use is db_set_headmodel.m:
function OutputFiles = db_set_headmodel(HeadModelFile, Target)
% DB_SET_HEADMODEL: Copy a head model node to other studies
%
% USAGE: OutputFiles = db_set_headmodel(HeadModelFile, iDestStudies) : Apply to the target studies
% OutputFiles = db_set_headmodel(HeadModelFile, 'AllConditions'): Apply to all the conditons in the same subject
% OutputFiles = db_set_headmodel(HeadModelFile, 'AllSubjects') : Apply to all the conditons in all the subjects
% @=============================================================================
% This function is part of the Brainstorm software:
% https://neuroimage.usc.edu/brainstorm
%
% Copyright (c) University of Southern California & McGill University
% This software is distributed under the terms of the GNU General Public License
% as published by the Free Software Foundation. Further details on the GPLv3
% license can be found at http://www.gnu.org/copyleft/gpl.html.
%
% FOR RESEARCH PURPOSES ONLY. THE SOFTWARE IS PROVIDED "AS IS," AND THE
% UNIVERSITY OF SOUTHERN CALIFORNIA AND ITS COLLABORATORS DO NOT MAKE ANY
% WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
% MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, NOR DO THEY ASSUME ANY
This file has been truncated. show original
Note that this question was already asked in this thread:
Hi there,
I’m wondering if the head model is required for each subject in my database. I’m using a template for different age ranges. 7-13, 14-17, and 18-45. Should I calculate the head model individually or is it better to calculate three head models and copy it over to other subjects?