% load the GLM you want to copy the specs from with transio access sourceglm = xff('model_with_configuration.glm', 't'); % load the GLM you want to copy the specs to (also with transio) targetglm = xff('model_without_configuration.glm', 't'); % copy the parts of the RunTimeVars you want to keep rtv = sourceglm.RunTimeVars; targetglm.RunTimeVars.Contrasts = rtv.Contrasts; targetglm.RunTimeVars.ContrastColors = rtv.ContrastColors; targetglm.RunTimeVars.CovariatesData = rtv.CovariatesData; targetglm.RunTimeVars.CovariatesNames = rtv.CovariatesNames; targetglm.RunTimeVars.Groups = rtv.Groups; % save the RunTimeVars of the target GLM targetglm.SaveRunTimeVars;