For spm_eeg_merge S.D can be a list of file names (that's where
strvcat in your example comes from). To make things easier you can
start the Merge function via the GUI (in Other/Merge) select your two
files, merge them and then generate a script from the dataset history
to see what it should look like.
> -----Original Message-----
> From: Fahimeh Mamashli [mailto:[log in to unmask]]
> Sent: 18 March 2011 16:14
> Subject: merging file question
> I am PhD student in Max Planck isntitute. I am currently started with DCM analysis.
> in the beginning I have problem with merging files. I saw you had a question in SPM group about merging MEG files.
> I have a problem now:
> I have two sets of data in filedtrip and I converted them to spm file so there are 2 'D' structures.
> I don't know how I can merge them using spm_eeg_merge.m
> I found a code in internet which was like:
> S.D = strvcat(efile);
> S.recode = 'same';
> D = spm_eeg_merge(S);
> but the strange thing is that there is only one 'D'. how it is merging two different files here?
> would you please help me to solve this problem.
> Best regards,
> Fahimeh Mamashli
> PhD student
> Max Planck Institute for Human Cognitive and Brain Sciences
> Stephanstraße 1A
> 04103 Leipzig
> Tel: +49 341 9940 - 2570