<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">hi,<div><br></div><div>i have a problem while performing prepare_leadfield.</div><div>the data is some old CTF data i collected ~2 years ago. i calculated a multisphere model in fieldtrip using prepare_localspheres. this step works (i.e. i get a vol structure that looks ok in my opinion). however when continuing with prepare_leadfield the the program crashes. </div><div><br></div><div>here's the code:</div><div><div>cfg=[];</div><div>cfg.grid.xgrid='auto';</div><div>cfg.grid.ygrid='auto';</div><div>cfg.grid.zgrid='auto';</div><div>cfg.vol=vol;</div><div>cfg.channel='MEG';</div><div>cfg.grad=dataCLeConI.grad;</div><div>cfg.inwardshift=0;</div><div>cfg.grid.resolution=1;</div><div>cfg.reducerank=2;</div><div><br></div><div>lf=prepare_leadfield(cfg);</div><div><br></div><div>i get this error message:</div><div><div>??? Error using ==> prepare_headmodel at 301</div><div>synthetic gradients not supported during volume conductor setup</div><div><br></div><div>Error in ==> prepare_leadfield at 223</div><div>[vol, sens, cfg] = prepare_headmodel(cfg, data);</div><div><br></div><div>Error in ==> newcat_calcgrid at 52</div><div>lf=prepare_leadfield(cfg);</div><div><br></div><div>i messed around with different headmodels just to see how prepare_leadfield behaves:</div><div>*when the headmodel is a single sphere (cfg.singlesphere='yes') prepare_leadfield works fine</div><div>*when using the nolte headmodel (via prepare_singleshell), prepare_leadfield does not crash, but the leadfields contain only NaN ... is that perhaps related to the issue above?</div><div><br></div><div>again, any help is greatly appreciated.</div><div><br></div><div>best,</div><div>nathan</div><div><br></div><div><br></div></div><div><br></div></div><div><br></div><br><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><span class="Apple-style-span" style="font-weight: bold; ">--------------------------------------------</span></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; "><b style="font-size: 13px; font-weight: bold; ">Dr. Nathan Weisz</b></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; "><br class="khtml-block-placeholder"></span></font></div><div><i>OBOB-Lab</i></div><div>University of Konstanz</div><div>Department of Psychology</div><div>P.O. Box D23</div><div>78457 Konstanz</div><div>Germany</div><div><br></div><div><b style="font-weight: bold; ">Tel</b>: ++49 - (0)7531 - 88 45 84</div><div><b style="font-weight: bold; ">Email:<span class="Apple-converted-space"> </span></b><a href="mailto:nathan.weisz@uni-konstanz.de">nathan.weisz@uni-konstanz.de</a></div><div><b style="font-weight: bold; ">Homepage</b>: <a href="http://www.uni-konstanz.de/obob">http://www.uni-konstanz.de/obob</a></div><div><br></div><div><div>"Nothing shocks me. I'm a scientist." (Indiana Jones)</div></div></div></div></span></div></span></div></span></div></span></div></span></div></span></div></span> </div><br></body></html><p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p> http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p> http://www.ru.nl/fcdonders/fieldtrip/</p>