<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="ltr">
<div>
<div>
<div>Hi all,<br>
</div>
I am trying to segment my 5s long dataset into chunks of 500ms.<br>
<br>
cfg = [];<br>
cfg.length = 0.5;<br>
cfg.overlap = 0;<br>
data_imwr_rest_seg = ft_redefinetrial(cfg, data_imwr_rest);<br>
<br>
</div>
Some (not all) of the datasets give me the following error message:<br>
<br>
<i>Index exceeds matrix dimensions.</i><br>
<br>
<i>Error in ft_fetch_data (line 104)<br>
      count(trlbeg:trlend) = count(trlbeg:trlend) + 1;<br>
<br>
Error in ft_redefinetrial (line 246)<br>
    data.trial{iTrl} = ft_fetch_data(dataold, 'header', hdr,<br>
    'begsample', begsample, 'endsample', endsample, 'chanindx',<br>
    1:hdr.nChans, 'skipcheckdata', 1);<br>
<br>
Error in ft_redefinetrial (line 304)<br>
  data   = ft_redefinetrial(tmpcfg, data);<br>
<br>
</i></div>
There is also a warning message that appears for all trials -<br>
<br>
<i>Warning: Size input contains non-integer values. This will error in<br>
a future release. Use FLOOR to convert to integer values. <br>
> In ft_fetch_data at 94<br>
  In ft_redefinetrial at 246<br>
  In ft_redefinetrial at 304 </i><br clear="all">
<div><br>
</div>
Can anyone help me identify what the problem could be?<br clear="all">
<br>
-- <br>
<div class="gmail_signature">Dr.Nivethida Thirugnanasambandam,<br>
Postdoctoral Visiting Fellow,<br>
Human Motor Control Section,<br>
National Institute of Neurological Disorders and Stroke,<br>
National Institutes of Health,<br>
Building 10, 7D42, <br>
10 Center Drive, MSC 1428<br>
Bethesda, MD 20892 - 1428<br>
Ph: +1-301-402-6231<br>
</div>
</div>
</body>
</html>