<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello experts!</div><div><br></div><div>I need help on 4D data reading with ft_read_header.</div><div>When I type hdr = ft_read_header('e,rfhp1.0Hz,COH)</div><div>It always shows such error: <br></div><div>??? Error using ==> _colonobj<br>Function '_colonobj' is not defined for values of class 'uint32'.<br><br>Error in ==> C:\MATLAB6p5\toolbox\fieldtrip-20110420\fileio\private\read_4d_hdr.m<br>On line 105 ==> for event = 1:header.epoch_data(epoch).total_var_events<br><br>Error in ==> C:\MATLAB6p5\toolbox\fieldtrip-20110420\fileio\ft_read_header.m<br>On line 153 ==> orig = read_4d_hdr(datafile);</div><div><br></div><div>I checked into the program and I am sure the error is from
<br></div><div>"for event = 1:header.epoch_data(epoch).total_var_events" which is line 153 in read_4d_hdr.m</div><div><br></div><div>I tracked and got information before this sentence that in this data, epoch = [1, 2, 3, 4, 5];</div><div> epoch_data(epoch).total_var_events = [65536, 1.6511e+009, 0, 0, 0];</div><div><br></div><div>Cannot understand why it said "Function '_colonobj' is not defined for values of class 'uint32'."</div><div><br></div><div>Any suggestions to settle this?</div><div><br></div><div>Thanks,</div><div>Eve<br></div></div></body></html>