<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><meta http-equiv="content-type" content="text/html; charset=utf-8">Sorry, I forgot to describe the specific error.  It said when I called the function ‘resample’, the parameters were not enough or type was wrong. And the error happened in ft_resampledata.m line 230, i.e. Error in ft_resampledata (line 230) newdat = transpose(resample(transpose(olddat),fsres,fsorig)); <div>But, I used the exactly same dataset and code in the tutorial, so I don’t get where mistook. <div><div><div dir="ltr"><br></div><div dir="ltr"><br><blockquote type="cite">在 2020年11月5日,17:13,Schoffelen, J.M. (Jan Mathijs) <jan.schoffelen@donders.ru.nl> 写道:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">


What is the error?<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 5 Nov 2020, at 05:03, <a href="mailto:hyxer1998@163.com" class="">
hyxer1998@163.com</a> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="auto" class="">Dear FieldTrip Community,
<div class=""><br class="">
</div>
<div class="">My name is Yuxin He. I’m learning how to use ICA to reject EOG artifacts from this tutorial <a href="https://www.fieldtriptoolbox.org/example/use_independent_component_analysis_ica_to_remove_eog_artifacts/" class="">https://www.fieldtriptoolbox.org/example/use_independent_component_analysis_ica_to_remove_eog_artifacts/</a>. </div>
<div class="">However, when I ran the part code of downsampling in this tutorial, there was an error</div>
<div class="">
<div class=""><br class="">
</div>
<div class="">Error in ft_resampledata (line 230)</div>
<div class="">        newdat = transpose(resample(transpose(olddat),fsres,fsorig));</div>
<div class=""><br class="">
</div>
<div class="">I don’t know how to deal with and hope anyone can help me with this trivial problem. </div>
<div class=""><br class="">
</div>
<div class="">Thank you very much. </div>
<div class=""><br class="">
</div>
<div class="">Yuxin He</div>
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
https://doi.org/10.1371/journal.pcbi.1002202<br class="">
</div>
</blockquote>
</div>
<br class="">


<span>_______________________________________________</span><br><span>fieldtrip mailing list</span><br><span>https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</span><br><span>https://doi.org/10.1371/journal.pcbi.1002202</span><br></div></blockquote></div></div></div></div></body></html>