0001
0002
0003
0004
0005
0006
0007
0008 if strmatch('MAC',computer)
0009 warning off MATLAB:warn_parse_feval_script
0010 end
0011
0012 global dataroot batch_root spm_path SCAN_OFFSET sinfo
0013
0014
0015
0016
0017
0018
0019
0020
0021 start_time = clock;
0022
0023 CONVERT_FORMAT = [];
0024
0025 RUN_SPM_BATCH = 1;
0026 batch_root = pwd;
0027 batch_file = fullfile(batch_root,'simulate_batch.m');
0028
0029 spm_path = '/usr/local/matlab/toolbox/local/spm99/';
0030
0031 dataroot = '/data1/simulate/';
0032
0033
0034
0035
0036
0037
0038 sinfo = get_simulate_sinfo;
0039
0040
0041
0042
0043
0044 if CONVERT_FORMAT
0045 convert_format(sinfo(CONVERT_FORMAT),dataroot,dataroot, SCAN_OFFSET);
0046 end
0047
0048
0049
0050
0051
0052 if RUN_SPM_BATCH
0053 spm_bch(batch_file);
0054 end
0055
0056 elapsed_time = etime(clock,start_time)