Dear Experts

I am just starting to learn SPM5 (Former SPM2 user) and I use Matlab version 7.1.  I am trying to use the Multiple Conditions Feature/option of SPM5 and I can’t seem to get my matlab file to load successfully. I was wondering if anyone could tell me what I am doing wrong with my matlab file. I appreciate any suggestions. I have saved the file as multipleconditions.mat (If I save it as a m-file then SPM5 does not seem to recognize it) and the file currently reads as:

 

  

Names{1}='NFV SON', onsets{1}=[149 276 611], durations{1}=[31 31 31];

Names{2}='FV SON', onsets{2}=427 851 1122 1506, durations{2}=[34 34 34 34];

Names{3}='NFV Lang', onsets{3}= [427 851 1122 1506], durations{3}=[33 59 40 37];

Names{4}='FV Lang', onsets{4}=  [75 210 915 1246], durations{4}=[44 36 17 43];

Names{5}='Whistle', onsets{5}=[672 821 1319 1570], durations{5}=[30 30 30 30];

Names{6}='Click', onsets{6}=[307 367 551 992], durations{6}=[30 30 30 30];

Names{7}='Bell', onsets{7}=[491 932 1186 1446], durations{7}=[30 30 30 30];

Names{8}='Silence/Rest', onsets{8}=[45 119 180 246 337 397 461 521 581 642 702 791 885 962 1022 1092 1156 1216 1289 1349 1416 1476 1540 1600], durations{7}=[30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30];

end;

 

 

 

Thank you

Theresa  Pape