Print

Print


Ahh, thank you very much Vladimir.
Best,
Vivek

-----Original Message-----
From: Vladimir Litvak [mailto:[log in to unmask]] 
Sent: Tuesday, January 03, 2012 3:24 PM
To: Buch, Vivek (NIH/NINDS) [G]
Cc: [log in to unmask]
Subject: Re: [SPM] saving head model

Dear Vivek,

The head model is in D.inv as you thought. I think I know the source of your problem. Make sure that in your script you do save(D) before running the batch and

D = spm_eeg_load(fullfile(D.path, D.fname)) 

after running the batch because the batch reads the data saved on the disk and saves the output there so the object you have in memory is not affected.

Best,

Vladimir


On 3 Jan 2012, at 16:20, "Buch, Vivek (NIH/NINDS) [G]" <[log in to unmask]> wrote:

> Hi Vladimir,
> I understand, thanks for the clarification. Just one more quick point to clarify for my own knowledge--where is the information from the head model stored in the dataset? Thanks for the response.
> 
> Best,
> Vivek
> 
> -----Original Message-----
> From: Vladimir Litvak [mailto:[log in to unmask]] 
> Sent: Tuesday, January 03, 2012 11:08 AM
> To: Buch, Vivek (NIH/NINDS) [G]
> Cc: [log in to unmask]
> Subject: Re: [SPM] saving head model
> 
> Dear Vivek,
> 
> The head model should be saved in the dataset automatically, but the
> lead fields are only computed when you run source reconstruction or
> DCM for imaging.
> 
> Vladimir
> 
> On Tue, Jan 3, 2012 at 4:02 PM, Buch, Vivek (NIH/NINDS) [G]
> <[log in to unmask]> wrote:
>> Hi all,
>> 
>> I am batch processing head model creation for an MEG dataset. I am just
>> wondering how this is supposed to save after it computes the head model. I
>> thought it was supposed to save automatically into the .mat file by creating
>> a D.inv field, but I do not see that after successful head model creation.
>> Do I need to add something to the batch script itself in order for it to
>> save?
>> 
>> 
>> 
>> Thanks,
>> 
>> Vivek