<div dir="ltr">Hello,<div><br></div><div style>This sounds like it could be a path issue. Is ft_selectdata_new in your path? If you type 'which ft_selectdata_new' does it show up? If not, type ft_defaults and then try again.</div>
<div style><br></div><div style>If still a problem...I'll have to look closer.</div><div style><br></div><div style>Cheers,</div><div style>Johanna</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/1/29 Fanny <span dir="ltr"><<a href="mailto:fanny.lachat@gmail.com" target="_blank">fanny.lachat@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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 !<span class="HOEnZb"><font color="#888888"><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></font></span></div>
<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>