<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 Mona,
<div class=""><br class="">
</div>
<div class="">If you directly use the output of ft_read_data as input into ft_appenddata, it won’t work. The reason is that ft_appenddata expects in the input (data#) matlab structures that are generated by ft_preprocessing. Ft_read_data outputs a numeric data
matrix, which is only part of the ft_preprocessing generated output. Have you something like this yet?:</div>
<div class=""><br class="">
</div>
<div class="">cfg = [];</div>
<div class="">cfg.dataset = ;somefiffile.fif’;</div>
<div class="">data = ft_preprocessing(cfg);</div>
<div class=""><br class="">
</div>
<div class="">Best</div>
<div class=""><br class="">
</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 05 Oct 2016, at 23:06, Wong-Barnum, Mona <<a href="mailto:mona@sdsc.edu" class="">mona@sdsc.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>I’m getting a runtime error with ft_appenddata:</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-family: 'Andale Mono'; background-color: rgb(223, 219, 196);" class="">
data = ft_appenddata ( <span style="font-variant-ligatures: no-common-ligatures; background-color: #999900" class="">
cfg</span>, data1, data2, data3, data4, data5, data6, data7, data8, data9, data10, data11, data12, data13, data14 )</div>
</div>
<div class=""><br class="">
</div>
<div class="">
<p style="box-sizing: border-box; margin: 0px 0px 10px; word-break: break-word; word-wrap: break-word; color: rgb(51, 51, 51); font-family: 'Open Sans', 'Helvetica Neue', sans-serif;" class="">
Error using ft_checkdata (line 468) This function requires raw+comp or raw data as input.</p>
<p style="box-sizing: border-box; margin: 0px 0px 10px; word-break: break-word; word-wrap: break-word; color: rgb(51, 51, 51); font-family: 'Open Sans', 'Helvetica Neue', sans-serif;" class="">
Error in ft_appenddata (line 80) varargin{i} = ft_checkdata(varargin{i}, 'datatype', {'raw+comp', 'raw'}, 'feedback', 'no');</p>
<p style="box-sizing: border-box; margin: 0px 0px 10px; word-break: break-word; word-wrap: break-word; color: rgb(51, 51, 51); font-family: 'Open Sans', 'Helvetica Neue', sans-serif;" class="">
Error in stitch (line 45) data = ft_appenddata ( cfg, data1, data2, data3, data4, data5, data6, data7, data8, data9, data10, data11, data12, data13, data14, data15, data16, data17, data18, data19, data20 )</p>
<div style="box-sizing: border-box; margin: 0px; word-break: break-word; word-wrap: break-word; color: rgb(51, 51, 51); font-family: 'Open Sans', 'Helvetica Neue', sans-serif;" class="">
Error in run (line 96) evalin('caller', [script ';']);</div>
</div>
<div class=""><br class="">
</div>
<span class="Apple-tab-span" style="white-space:pre"></span>I have Neuromag data and was able to read the files into data# using ft_read_data.
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>In the documentation, it says cfg can be empty so I declared it by "cfg = ‘’;” before the ft_appenddata call; is that ok?</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>Any help/suggstions/tips regarding the ft_appenddata error would be appreciated. Thanks!</div>
<div class=""><br class="">
</div>
<div class="">Mona</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
*********************************************<br class="">
Mona Wong<br class="">
Web & iPad Application Developer<br class="">
San Diego Supercomputer Center<br class="">
<br class="">
"To handle yourself, use your head;<br class="">
to handle others, use your heart."</div>
<div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
</div>
<div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-tab-span" style="white-space: pre; "></span>-- Eleanor Roosevelt</div>
<div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
*********************************************</div>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br class="">
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>