<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">Hi Yasir,</div>
<div class=""><br class="">
</div>
for starters, there’s a typoin your cfg: cfg.resamplerefs should read cfg.resamplefs
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 6 Feb 2023, at 15:22, Yasir Çatal via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">Thanks for the answer about resampling vs single precision Jan. 
<div class=""><br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
The motivation for using ft_resampledata is not clear to me, neither is it clear how you actually called the function (cfg details etc).</blockquote>
<div class=""><br class="">
</div>
<div class=""> The only motivation is memory constraints. cfg is like this:</div>
<div class=""><br class="">
</div>
<div class="">cfg = [];</div>
<div class="">cfg.resamplerefs = 250; (or other values that I tried that didn't work.). </div>
<div class=""><br class="">
</div>
<div class="">I tried breakpoints but the error happens at the level of internal MATLAB functions so that didn't get me anywhere. </div>
<div class=""><br class="">
</div>
<div class="">Thanks and kind regards,</div>
<div class="">Yasir</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://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!_W_2p-lRmWvzwlXOfQ4R_CEYQs4VZp7iXUQrOgUDHQyXnbQYeYzsh1dI69h8S8bFHERP6fm9dNAcX4G2YCUuHBRtauVgrnvrCv-p8A$
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>