<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle">P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body style="WORD-WRAP: break-word" fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p>Hi Tzvetan<a></a><a></a>,</p>
<p> </p>
<p>Thank you very much for your reply.</p>
<p> </p>
<p>I am using the MNI<a></a><a></a> surface meshes from the NeuroScan<a></a><a></a> Curry Software as I had trouble in generating the MRI based headmodels<a></a><a></a>.</p>
<p> </p>
<p>I had trouble with the MNI<a></a><a></a> surface meshes as well but as Alex suggested earlier in the "Headmodel<a></a><a></a> with NeuroScan<a></a><a></a> meshes" discussion thread I managed to overcome the problems after smoothing them. When I ran the ft_prepare_headmodel<a></a><a></a>
with the new smoothed meshes the program ran without explicitly giving me any errors(including om_minverser<a></a>), but now with your comment I understand that om<a></a><a></a> has not run succesfully<a></a><a></a> to create the mat file.</p>
<p> </p>
<p>I am attaching the figure with the smoothed meshes to have a look whether you observe an intersecting mesh.
</p>
<p> </p>
<p>Please let me know if you have any comments on my procedure.</p>
<p> </p>
<p>Many Thanks.</p>
<p>Regards</p>
<p><a>Imali</a><a></a><a></a></p>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">
<hr tabindex="-1">
<div style="DIRECTION: ltr" id="divRpF46939"><font color="#000000" size="2" face="Tahoma"><b>From:</b> fieldtrip-bounces@science.ru.nl [fieldtrip-bounces@science.ru.nl] on behalf of Tzvetan Popov [tzvetan.popov@uni-konstanz.de]<br>
<b>Sent:</b> Thursday, 14 June 2012 5:17 PM<br>
<b>To:</b> FieldTrip discussion list<br>
<b>Subject:</b> Re: [FieldTrip] ft_prepare_vol_sens-missing .mat file<br>
</font><br>
</div>
<div></div>
<div><br>
<div>
<div>Hi Imali,</div>
<div><br>
</div>
<div>in this case your meshes probably touch somewhere so that om doesn't created the bem model at all and as a consequence didn't wrote the mat file. You should go back in the segmentation procedure and play around with the option "cfg.threshold", plot the
meshes and make sure they do not touch. </div>
<div>Good luck</div>
<div>tzvetan</div>
<div><br>
</div>
<br class="Apple-interchange-newline">
<blockquote type="cite"><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; FONT: medium Helvetica; WHITE-SPACE: normal; ORPHANS: 2; WORD-SPACING: 0px" class="Apple-style-span">
<div lang="EN-AU">
<div class="WordSection1">
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
</div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
Dear fieldtrip users,</div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
</div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
I am using a BEM (using OPENMEEG) created volume conduction model, and in order to prepare lead fields I loaded the electrode array with,</div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">elec = ft_read_sens(</span><span style="FONT-FAMILY: 'Courier New'; COLOR: rgb(160,32,240); FONT-SIZE: 10pt">'mydirectory\standard_1020.elc'</span><span style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">);</span><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 12pt"></span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
</div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
The I used the function,</div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
</div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">[vol, sens] = ft_prepare_vol_sens(vol, elec);</span><span style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 12pt"></span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
However this give as error,</div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
</div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<i><span style="COLOR: rgb(55,96,146)">??? Reference to non-existent field 'mat'.</span></i></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<i><span style="COLOR: rgb(55,96,146)"></span></i> </div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<i><span style="COLOR: rgb(55,96,146)">Error in ==> ft_prepare_vol_sens at 419</span></i></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<i><span style="COLOR: rgb(55,96,146)"> if size(vol.mat,1)~=size(vol.mat,2) && size(vol.mat,1)==length(sens.elecpos)</span></i></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<i><span style="COLOR: rgb(55,96,146)"></span></i> </div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<i><span style="COLOR: rgb(55,96,146)">Error in ==> curry_leadField at 15</span></i></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<i><span style="COLOR: rgb(55,96,146)"> [vol, sens] = ft_prepare_vol_sens(vol, elec);</span></i></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
</div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
The vol created with the OPENMEEG only contains the following fields,</div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="COLOR: rgb(55,96,146)">vol =</span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="COLOR: rgb(55,96,146)"></span> </div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="COLOR: rgb(55,96,146)"> bnd: [1x3 struct]</span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="COLOR: rgb(55,96,146)"> cond: [0.3300 0.0042 0.3300]</span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="COLOR: rgb(55,96,146)"> skin_surface: 1</span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="COLOR: rgb(55,96,146)"> source: 3</span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="COLOR: rgb(55,96,146)"> type: 'openmeeg'</span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="COLOR: rgb(55,96,146)"> unit: 'mm'</span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="COLOR: rgb(55,96,146)"> cfg: [1x1 struct]</span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="COLOR: rgb(55,96,146)"></span> </div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
Can someone please help me with this error, any advice and comment will be highly appreciated.</div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
Thank you very much!</div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
</div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
Regards</div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
Imali</div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
</div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<b><span style="FONT-FAMILY: 'Times New Roman',serif">Imali Thanuja Hettiarachchi</span></b></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="FONT-FAMILY: 'Times New Roman',serif">PhD Candidate</span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="FONT-FAMILY: 'Times New Roman',serif">Centre for Intelligent Systems research</span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="FONT-FAMILY: 'Times New Roman',serif">Deakin University,<span class="Apple-converted-space"> </span></span><span style="FONT-FAMILY: 'Times New Roman',serif; COLOR: black; FONT-SIZE: 10pt">Geelong 3217, Australia.</span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="FONT-FAMILY: 'Times New Roman',serif; COLOR: black; FONT-SIZE: 10pt"></span> </div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="FONT-FAMILY: 'Times New Roman',serif; COLOR: black; FONT-SIZE: 10pt">Mobile : +61430321972</span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="FONT-FAMILY: 'Times New Roman',serif; COLOR: black; FONT-SIZE: 10pt">Email:<span class="Apple-converted-space"> </span><a style="COLOR: blue; TEXT-DECORATION: underline" href="mailto:ith@deakin.edu.au" target="_blank"><span style="COLOR: blue">ith@deakin.edu.au</span></a><br>
</span><span style="FONT-FAMILY: 'Times New Roman',serif"><a style="COLOR: blue; TEXT-DECORATION: underline" href="http://www.deakin.edu.au/cisr" target="_blank"><span style="COLOR: blue">www.deakin.edu.au/cisr</span></a></span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="FONT-FAMILY: 'Times New Roman',serif"></span> </div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="FONT-FAMILY: Helvetica,sans-serif; COLOR: black; FONT-SIZE: 9pt"><span><image001.jpg></span></span><span style="FONT-FAMILY: Tahoma,sans-serif; COLOR: black; FONT-SIZE: 10pt"></span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="FONT-FAMILY: Tahoma,sans-serif; COLOR: black; FONT-SIZE: 10pt"></span> </div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
<span style="FONT-FAMILY: Tahoma,sans-serif; COLOR: black; FONT-SIZE: 10pt"><br>
<br>
</span><span></span></div>
<div style="MARGIN: 0cm 0cm 0pt; FONT-FAMILY: Calibri,sans-serif; FONT-SIZE: 11pt">
</div>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a style="COLOR: blue; TEXT-DECORATION: underline" href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a style="COLOR: blue; TEXT-DECORATION: underline" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div>
</span></blockquote>
</div>
<br>
<div><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; FONT: medium Helvetica; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px" class="Apple-style-span"><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px" class="Apple-style-span">
<div style="WORD-WRAP: break-word"><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px" class="Apple-style-span">
<div style="WORD-WRAP: break-word"><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px" class="Apple-style-span">
<div style="WORD-WRAP: break-word"><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px" class="Apple-style-span">
<div style="WORD-WRAP: break-word"><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); WORD-SPACING: 0px" class="Apple-style-span">
<div style="WORD-WRAP: break-word">
<div>
<div>*******************************************</div>
<div>Tzvetan Popov </div>
<div>Clinical Psychology </div>
<div>University of Konstanz</div>
<div>Box 23</div>
<div>78457 Konstanz, GERMANY</div>
<div>Phone: 0049-7531-883086</div>
<div>Fax: 0049-7531-884601</div>
<div>Email: <a href="mailto:tzvetan.popov@uni-konstanz.de" target="_blank">tzvetan.popov@uni-konstanz.de</a></div>
</div>
</div>
*******************************************</span></div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</span><br class="Apple-interchange-newline">
</div>
<br>
</div>
</div>
</div>
</body>
</html>