<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Dear fieldtrip users,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am using a BEM (using OPENMEEG) created volume conduction model, and in order to prepare lead fields I loaded the electrode array with,<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">elec = ft_read_sens(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A020F0">'mydirectory\standard_1020.elc'</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);</span><span style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The I used the function,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">[vol, sens] = ft_prepare_vol_sens(vol, elec);</span><span style="font-size:12.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal">However this give as error,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><i><span style="color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%">??? Reference to non-existent field 'mat'.<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><i><span style="color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%">Error in ==> ft_prepare_vol_sens at 419<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%"> if size(vol.mat,1)~=size(vol.mat,2) && size(vol.mat,1)==length(sens.elecpos)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><i><span style="color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%">Error in ==> curry_leadField at 15<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%"> [vol, sens] = ft_prepare_vol_sens(vol, elec);<o:p></o:p></span></i></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The vol created with the OPENMEEG only contains the following fields,<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%">vol =
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%"> bnd: [1x3 struct]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%"> cond: [0.3300 0.0042 0.3300]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%"> skin_surface: 1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%"> source: 3<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%"> type: 'openmeeg'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%"> unit: 'mm'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%"> cfg: [1x1 struct]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#376092;mso-style-textfill-fill-color:#376092;mso-style-textfill-fill-alpha:100.0%"><o:p> </o:p></span></p>
<p class="MsoNormal">Can someone please help me with this error, any advice and comment will be highly appreciated.<o:p></o:p></p>
<p class="MsoNormal">Thank you very much!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards<o:p></o:p></p>
<p class="MsoNormal">Imali<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-family:"Times New Roman","serif";mso-fareast-language:EN-AU">Imali Thanuja Hettiarachchi<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-family:"Times New Roman","serif";mso-fareast-language:EN-AU">PhD Candidate<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Times New Roman","serif";mso-fareast-language:EN-AU">Centre for Intelligent Systems research<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Times New Roman","serif";mso-fareast-language:EN-AU">Deakin University,
</span><span style="font-size:10.0pt;font-family:"Times New Roman","serif";color:black;mso-fareast-language:EN-AU">Geelong 3217, Australia.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman","serif";color:black;mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman","serif";color:black;mso-fareast-language:EN-AU">Mobile : +61430321972<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman","serif";color:black;mso-fareast-language:EN-AU">Email:
<a href="mailto:ith@deakin.edu.au"><span style="color:blue">ith@deakin.edu.au</span></a><br>
</span><span style="font-family:"Times New Roman","serif";mso-fareast-language:EN-AU"><a href="http://www.deakin.edu.au/cisr"><span style="color:blue">www.deakin.edu.au/cisr</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Times New Roman","serif";mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black;mso-fareast-language:EN-AU"><img border="0" width="70" height="73" id="Picture_x0020_1" src="cid:image001.jpg@01CD4A2F.0583E260" alt="Description: Description: Description: cid:1216BE20-1800-4A47-8B9F-E7B9D94831CD@deakin.edu.au"></span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;mso-fareast-language:EN-AU"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;mso-fareast-language:EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black;mso-fareast-language:EN-AU"><br>
<br>
</span><span style="mso-fareast-language:EN-AU"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>