Dear SPMlist,
I want to add parameter to first-level conditions. Therefore I wrote a matlab-script to extract the values for these parameters from logfiles. These values are written to txt-files in ascii format in a cell array. Now I want to add these values to the first-level analysis. I tried it with saving a batch file as a .mat-file. Then I added the following file-name and variable name to the .mat-file but nothing happend. I think the problem is to get the right format for these values. But how could I read in these values for all the parameters? Because I have 20 subjects with three conditions and two parameters each and I want to make it a little bit faster with using these value-files.
matlabbatch{1}.spm.stats.fmri_spec.sess.cond(1).pmod(1).name = 'win';
win_high = textscan('\logfiles\VP01_parameter_wins_Block1_high.txt','%u',33,'Delimiter','\t')
matlabbatch{1}.spm.stats.fmri_spec.sess.cond(1).pmod(1).param = ['win_high'];
matlabbatch{1}.spm.stats.fmri_spec.sess.cond(1).pmod(1).poly = 1;
Thank you for your help
Benjamin Albrecht