<div dir="ltr"><div><div><div><div><div><div>Dear fieldtrip users, <br><br>I am trying to use the function<b> ft_selectdata_new </b> on my data.<br></div>I have time-frequency data that come from ft_freqanalysis.<br><br></div>
I want to average my data over the frequency of interest (10-12Hz).<br> <br>----------------------<br></div>Here is my script : <br><br>cfg = [ ];<br>cfg.parameter = 'powspctrm';<br>cfg.frequency = [10 12];<br>
cfg.avgoverfreq = 'yes';<br>cfg.latency = [-0.7 1];<br>cfg.avgovertime = 'no';<br><br>avg_10_12 = ft_selectdata_new (cfg,mydata);<br>------<br><br></div>This doesn't work : 'Undefined function 'ft_selectdata_new' for input arguments of type 'struct'.<br>
<br></div>What should I change in my script in order for it to work ? <br></div><div>(I tried with : ft_selectdata_new (cfg,mydata.powspctrm));</div><div><br></div>Thank you in advance !<br clear="all"><div><div><div><div>
<div><div><div><div><div><div><br>-- <br></div></div></div></div></div></div></div></div></div></div></div>