%--------------------------------------------------------------
% user variables defined here 
%---------------------------------------------------------------
global ParentDir StatDir DirMat Smooth SmoothStr MaskStr

%   This software is protected by german copyright and international treaties.             
%   Copyright 2004 Markus Junghöfer & Peter Peyk. All Rights Reserved.                     
%                                                                                          
%   THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE        
%   NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO,    
%   WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE    
%   OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
%   TRADEMARKS OR OTHER RIGHTS. COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT,       
%   INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE      
%   OR DOCUMENTATION.                                                                      
%---------------------------------------------------------------
% batch variables defined here for analyses
%---------------------------------------------------------------

analyses = struct( ... 
   'type', 			[1 2], ...
   'index', 		[1 1], ...
   'work_dir', 	    [1 1], ...
   'mfile', 		[1 1]);

%-------------------------------------------

type = {'model','contrasts','defaults_edit','headers',...
	'means','realign','normalisation','smooth'};

%-------------------------------------------
Wd1=[StatDir,'Fix.',MaskStr,'.',SmoothStr];

[MkDirStatus,MkDirMsg]=mkdir(ParentDir,Wd1);
if MkDirStatus==1;
	fprintf(['Make directory: ',Wd1,' !\n\n'])
elseif MkDirStatus==2;
	fprintf(['Directory: ',Wd1,' already exists !\n\n'])
elseif MkDirStatus==0;
	MkDirStatus=MkDirStatus
	MkDirMsg=MkDirMsg
	return;
end
Wd1=[ParentDir,Wd1]
work_dir = {Wd1};
%-------------------------------------------

m1=['C:\Programme\Matlab12\toolbox\fmri\Batches\BatchFixModelfMEEG']
mfile={m1}
%------------------------------------------ 