<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>I'm getting the following error message when trying to use ft_combineplaner():</div>
<div>
<div>>Error using ft_checkdata (line 406)</div>
<div>>This function requires ctf151_planar, ctf275_planar, neuromag122, neuromag306,</div>
<div>>bti248_planar, bti148_planar, itab153_planar, yokogawa160_planar, yokogawa64_planar or</div>
<div>>yokogawa440_planar data as input, but you are giving neuromag306 data.</div>
</div>
<div><br>
</div>
<div>Obviously, this error message doesn't make complete sense…. </div>
<div><br>
</div>
<div>The problem seems to be due to the fact that my data were preprocessed using SPM and converted to fieldtrip format using spm2fieldtrip(). Spm2fieldtrip() seems to spit out data structures compatible with the older fieldtrip data format, which has the following
 subfields, and lacks fields like 'grad' which are present after preprocessing the data wholly using recent fieldtrip releases:</div>
<div><span class="Apple-style-span" style="color: rgb(30, 30, 30); font-size: 13px; line-height: 20px; font-family: 'Helvetica Neue', Arial, sans-serif; ">   avg: [338x1501 double]<br>
      var: [338x1501 double]<br style="margin-top: -10px; ">
     time: [1x1501 double]<br style="margin-top: -10px; ">
      dof: [338x1501 double]<br style="margin-top: -10px; ">
    label: {338x1 cell}<br style="margin-top: -10px; ">
   dimord: 'chan_time'<br style="margin-top: -10px; ">
      cfg: [1x1 struct]</span></div>
<div><br>
</div>
<div>I can circumvent this error for now with the quick/easy hack of editing ft_checkdata line 387 to accept 'avg' data so it reads:</div>
<div>>if isfield(data, 'grad') || isfield(data, 'elec') || isfield(data, 'avg') </div>
<div>This results in ft_combineplanar() and subsequent data topo/muliplotting working fine, but I'm not sure whether the missing 'grad' data would be troublesome in other situations, in which case  spm2fieldtrip(),  ft_combineplanar() or ft_checkdata() might
 need tweaking? <br>
</div>
<div><br>
</div>
<div>Any advice on whether I'm doing something wrong here and/or if this is readily fixable would be greatly appreciated! I'm using the latest fieldtrip release (10/12/12) and SPM8.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Ian</div>
<div>
<div>
<div>-------------------</div>
<div>
<div>
<div>Ian Gould, PhD</div>
<div>Brain & Cognition Laboratory</div>
<div>Department of Experimental Psychology</div>
<div>University of Oxford</div>
<div>South Parks Road</div>
<div>Oxford, OX1 3UD</div>
</div>
</div>
</div>
</div>
</body>
</html>