Nice idea. This would probably solve the problem I posted earlier today as well. Are you also using a newer version of fieldtrip Marco? <br><br>If it's a new problem with the program structure perhaps the powers that be could update the version?  :)<br>
<br>Nathan<br><br><div class="gmail_quote">On Mon, Nov 24, 2008 at 4:30 AM, Nathan Weisz <span dir="ltr"><<a href="mailto:nathanweisz@mac.com">nathanweisz@mac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi marco,<br>
<br>
if i recall correctly then this file is under the fieldtrip/private folder. i usually rename (e.g. notprivate) that folder and then add it to the path. perhaps you'll have to restart matlab.<br>
<br>
hope this helps.<br>
<br>
best,<br><font color="#888888">
nathan</font><div><div></div><div class="Wj3C7c"><br>
<br>
<br>
On 24.11.2008, at 10:26, Marco SPERDUTI wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
i have a problem, each time i try to use freqanalysis i have these errors:<br>
<br>
??? Undefined command/function 'mbrealvector'.<br>
<br>
Error in ==> nearest at 20<br>
mbrealvector(array)<br>
<br>
Error in ==> freqanalysis_tfr at 203<br>
 begsampl = nearest(indicvect,cfg.latency(1));<br>
<br>
Error in ==> freqanalysis at 192<br>
[freq] = feval(sprintf('freqanalysis_%s', lower(cfg.method)), cfg, data);<br>
<br>
That's the command i use:<br>
<br>
cfg              = [];<br>
cfg.output       = 'pow';<br>
cfg.method       = 'tfr';<br>
cfg.foi          = 34:1:38;<br>
cfg.waveletwidth  = 8<br>
cfg.keeptrials    = 'yes'<br>
TFRdata = freqanalysis(cfg, data);<br>
<br>
any idea?<br>
<br>
Marco<br>
<br>
----------------------------------<br>
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also <a href="http://listserv.surfnet.nl/archives/fieldtrip.html" target="_blank">http://listserv.surfnet.nl/archives/fieldtrip.html</a> and <a href="http://www.ru.nl/fcdonders/fieldtrip" target="_blank">http://www.ru.nl/fcdonders/fieldtrip</a>.<br>

</blockquote>
<br>
----------------------------------<br>
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also <a href="http://listserv.surfnet.nl/archives/fieldtrip.html" target="_blank">http://listserv.surfnet.nl/archives/fieldtrip.html</a> and <a href="http://www.ru.nl/fcdonders/fieldtrip" target="_blank">http://www.ru.nl/fcdonders/fieldtrip</a>.<br>

</div></div></blockquote></div><br><br clear="all"><br>-- <br>Nathan Killian<br>Graduate Student - Georgia Tech Bioengineering<br>Buffalo Lab at Emory-Yerkes: 404.712.9431<br>Potter Lab at Georgia Tech: 404.385.4083<br>
<p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>