<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Stephen,<div class=""><br class=""></div><div class="">thanks for your response, and for spelling my name right :)</div><div class=""><br class=""></div><div class="">The call to ft_read_header happened in the call to ft_databrowser, it wasn’t directly called by me. </div><div class=""><br class=""></div><div class="">But, in the meanwhile, I get passed that point when calling the data browser with cfg.dataset instead of cfg.datafile. </div><div class=""><br class=""></div><div class="">However, I have a new error (see below). The data I am trying to plot is just continuous data that I did not perform any artifact rejection on. </div><div class=""><br class=""></div><div class="">would you have an idea what’s going on? </div><div class=""><br class=""></div><div class="">Thank you!</div><div class=""><br class=""></div><div class="">Stephan</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""> </div><div class="">cfg=[];</div><div class="">cfg.continuous = ‘yes’;</div><div class="">cfg.demean = ‘yes’;</div><div class="">raw = ft_preprocessing(cfg,filename)</div><div class=""><br class=""></div><div class=""><div class="">>> cfg=[];</div><div class="">cfg.viewmode = 'vertical';</div><div class="">cfg.continuous ='yes';</div><div class="">% cfg.dataset = edf ;</div><div class="">ft_databrowser(cfg,raw)</div><div class="">the input is raw data with 105 channels and 1 trials</div><div class="">detected   0 visual artifacts</div><div class="">Error using zeros</div><div class="">Size inputs must be integers.</div><div class=""><br class=""></div><div class="">Error in convert_event>artifact2artvec (line 179)</div><div class="">artvec = zeros(length(artifact), endsample);</div><div class=""><br class=""></div><div class="">Error in convert_event (line 103)</div><div class="">    obj = artifact2artvec(obj,endsample);</div><div class=""><br class=""></div><div class="">Error in ft_databrowser (line 511)</div><div class="">artdata.trial{1}       = convert_event(artifact, 'boolvec', 'endsample', datendsample); % every artifact is a "channel"</div><div class=""> </div></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 25, 2015, at 12:12 AM, Stephen Whitmarsh <<a href="mailto:stephen.whitmarsh@ki.se" class="">stephen.whitmarsh@ki.se</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Hi Stephan,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Sorry for misspelling your name – I know how it feels<span class="Apple-converted-space"> </span></span><span style="font-size: 11pt; font-family: Wingdings; color: rgb(31, 73, 125);" class="">J</span><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Stephen<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div class=""><div style="border-style: solid none none; border-top-color: rgb(225, 225, 225); border-top-width: 1pt; padding: 3pt 0cm 0cm;" class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><b class=""><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">From:</span></b><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="Apple-converted-space"> </span><a href="mailto:fieldtrip-bounces@science.ru.nl" class="">fieldtrip-bounces@science.ru.nl</a> [<a href="mailto:fieldtrip-bounces@science.ru.nl" class="">mailto:fieldtrip-bounces@science.ru.nl</a>]<span class="Apple-converted-space"> </span><b class="">On Behalf Of<span class="Apple-converted-space"> </span></b>Stephen Whitmarsh<br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>25 September 2015 09:07<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [FieldTrip] data browser looking for missing cfg.headerformat<o:p class=""></o:p></span></div></div></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Hi Stefan,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">You haven’t defined the third argument you use in the call to<span class="Apple-converted-space"> </span><i class="">ft_read_header</i>, i.e.<span class="Apple-converted-space"> </span><i class="">cfg.headerformat</i>. You could change it to ‘edf’ I think, or just try to leave it out – pretty sure<span class="Apple-converted-space"> </span><i class="">ft_read_header<span class="Apple-converted-space"> </span></i>can figure out the dataformat.<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Cheers,<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Stephen<o:p class=""></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div class=""><div style="border-style: solid none none; border-top-color: rgb(225, 225, 225); border-top-width: 1pt; padding: 3pt 0cm 0cm;" class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><b class=""><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">From:</span></b><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="Apple-converted-space"> </span><a href="mailto:fieldtrip-bounces@science.ru.nl" style="color: rgb(149, 79, 114); text-decoration: underline;" class="">fieldtrip-bounces@science.ru.nl</a><span class="Apple-converted-space"> </span>[<a href="mailto:fieldtrip-bounces@science.ru.nl" style="color: rgb(149, 79, 114); text-decoration: underline;" class="">mailto:fieldtrip-bounces@science.ru.nl</a>]<span class="Apple-converted-space"> </span><b class="">On Behalf Of<span class="Apple-converted-space"> </span></b>Steph Bickel<br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>25 September 2015 06:20<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span><a href="mailto:fieldtrip@science.ru.nl" style="color: rgb(149, 79, 114); text-decoration: underline;" class="">fieldtrip@science.ru.nl</a><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>[FieldTrip] data browser looking for missing cfg.headerformat<o:p class=""></o:p></span></div></div></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11.5pt; font-family: 'Segoe UI', sans-serif; color: rgb(33, 33, 33); background-color: white; background-position: initial initial; background-repeat: initial initial;" class="">Hello fieldtrip experts, </span><o:p class=""></o:p></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11.5pt; font-family: 'Segoe UI', sans-serif; color: rgb(33, 33, 33);" class=""> </span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11.5pt; font-family: 'Segoe UI', sans-serif; color: rgb(33, 33, 33);" class="">I tried plotting an edf file. At line 325 the function ft_read_header seems to expect a field in the config structure that does not exist.<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11.5pt; font-family: 'Segoe UI', sans-serif; color: rgb(33, 33, 33);" class="">Do you know if I am doing something wrong or if this is a bug?<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11.5pt; font-family: 'Segoe UI', sans-serif; color: rgb(33, 33, 33);" class=""> </span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11.5pt; font-family: 'Segoe UI', sans-serif; color: rgb(33, 33, 33);" class="">I am using the current field trip version downloaded from github.<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11.5pt; font-family: 'Segoe UI', sans-serif; color: rgb(33, 33, 33);" class=""> </span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11.5pt; font-family: 'Segoe UI', sans-serif; color: rgb(33, 33, 33);" class="">Thank you!<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11.5pt; font-family: 'Segoe UI', sans-serif; color: rgb(33, 33, 33);" class=""> </span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11.5pt; font-family: 'Segoe UI', sans-serif; color: rgb(33, 33, 33);" class="">Stephan<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11.5pt; font-family: 'Segoe UI', sans-serif; color: rgb(33, 33, 33);" class=""> </span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11.5pt; font-family: 'Segoe UI', sans-serif; color: rgb(33, 33, 33);" class=""> </span></div></div><div class=""><div class=""><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 7.5pt; font-family: Courier; color: rgb(33, 33, 33);" class="">cfg=[];<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 7.5pt; font-family: Courier; color: rgb(33, 33, 33);" class="">cfg.viewmode = </span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'vertical'</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(33, 33, 33);" class="">;<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 7.5pt; font-family: Courier; color: rgb(33, 33, 33);" class="">cfg.continuous =</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">'yes'</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(33, 33, 33);" class="">;<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.datafile = </span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(178, 69, 243);" class="">‘/data/test.edf'</span><span style="font-size: 7.5pt; font-family: Courier;" class="">;</span><span style="font-size: 7.5pt; font-family: Courier; color: rgb(33, 33, 33);" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 7.5pt; font-family: Courier; color: rgb(33, 33, 33);" class="">ft_databrowser(cfg)<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 7.5pt; font-family: Courier; color: rgb(33, 33, 33);" class=""> </span></div></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11.5pt; font-family: 'Segoe UI', sans-serif; color: rgb(33, 33, 33);" class=""> </span></div></div><div class=""><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 7.5pt; font-family: Courier; color: rgb(33, 33, 33);" class="">Reference to non-existent field 'headerformat'.</span><span style="font-size: 11.5pt; font-family: 'Segoe UI', sans-serif; color: rgb(33, 33, 33);" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 7.5pt; font-family: Courier; color: rgb(33, 33, 33);" class="">Error in ft_databrowser (line 325)</span><span style="font-size: 11.5pt; font-family: 'Segoe UI', sans-serif; color: rgb(33, 33, 33);" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 7.5pt; font-family: Courier; color: rgb(33, 33, 33);" class="">  hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);</span><span style="font-size: 11.5pt; font-family: 'Segoe UI', sans-serif; color: rgb(33, 33, 33);" class=""><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 7.5pt; font-family: Courier; color: rgb(33, 33, 33);" class=""> </span><span style="font-size: 11.5pt; font-family: 'Segoe UI', sans-serif; color: rgb(33, 33, 33);" class=""><o:p class=""></o:p></span></div></div></div></div></div><span style="font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">fieldtrip mailing list</span><br style="font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a></span><br style="font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Tahoma; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></span></div></blockquote></div><br class=""></div></body></html>