Hi dear fieldtripers.<br><br>I have a probblem that i dont understand when im using FT_MEGPLANAR. Im wondering if anyone could give me a hand!<br>The thing is that I have several individual data, each with this kind of fields.<br>
<br> patient{12}<br><br> ans = <br> avg: [148x255 double]<br> var: [148x255 double]<br> fsample: 254.3235<br> time: [1x255 double]<br> dof: [148x255 double]<br> label: {148x1 cell}<br>
dimord: 'chan_time'<br> grad: [1x1 struct]<br> cfg: [1x1 struct]<br><br>And when Im using ft_megplanar as the same way the tutorial described it, like this:<br><br> cfg = [];<br> cfg.planarmethod = 'sincos';<br>
avgFICplanar = ft_megplanar(cfg, pacientes{12});<br><br>Fieldtrip toolbox gives me this kind of errors that I don understand.<br><br> ??? Reference to non-existent field 'unit'.<br><br> Error in ==> megplanar_sincos at 37<br>
fprintf('minimum distance between gradiometers is %6.2f %s\n', min(distance(find(distance~=0))), grad.unit);<br><br> Error in ==> ft_megplanar at 171<br> montage = megplanar_sincos(cfg, data.grad);<br>
<br> Error in ==> STEPHANTEST at 31<br> avgFICplanar = ft_megplanar(cfg, pacientes{12});<br><br>Then, off course, I can use FT_COMBINEPLANAR too. So does anyone knows what could be the error in the data? or it is necesary another field that im not using in this moment?<br>
<br>Thanks fellas for this comments<br clear="all"><br>-- <br>Atentamente:<br>Johann Martínez. M.Sc.<br>