Hi Lee an easy way to learn SPM functions is to create a batch using the batch interface and save it - then open this in matlab you will find all the info you need Cyril > Dear SPMers, > > I would like to modify and run SPM matlab codes for 1st level analysis > assuming canonical HRF and AR(1) noise, instead of just using the GUI > system. > I have found relevant matlab code such as spm_hrf.m, spm_Gpdf.m, > spm_fmri_design.m, and spm_Volterra.m, but failed finding a code for > running GLM when AR(1) noise assumed. Could you let me know the name > of SPM matlab file for running GLM with AR(1) noise? Thanks in advance. > > Best, > Hana Lee > > > > -- > Lee, Hana > Biostatistics Ph.D student > School of Public Health > The University of North Carolina at Chapel Hill > [log in to unmask] <mailto:[log in to unmask]> > > Brass bands are all very well in their place- outdoors and several > miles away. > > -- Dr Cyril Pernet, SBIRC fMRI Manager Lecturer in cognitive neuroimaging SFC Brain Imaging Research Center Division of Clinical Neurosciences University of Edinburgh Western General Hospital Crewe Road Edinburgh EH4 2XU Scotland, UK [log in to unmask] tel: +44(0)1315373661 http://www.sbirc.ed.ac.uk/cyril http://www.sinapse.ac.uk/