%   BAT.m

%   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.  


%--------------------------------------------------------------
% user variables defined here 
%---------------------------------------------------------------
global SubInd SubIndStr Base BaseStr Smooth SmoothStr MaskStr

                                                                    
%---------------------------------------------------------------
% batch variables defined here for analyses
%---------------------------------------------------------------


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

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

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

%-------------------------------------------
WdP=['D:\ValAro\',SubIndStr,'\'];
%WdP=['K:\ValAro\',SubIndStr,'\'];
Wd1=[MaskStr,'S',SubIndStr,'Base',BaseStr,'Smooth',SmoothStr]

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

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