<div dir="ltr"><div>And, also of course Roey, thank you as well<br><br></div>Ashley<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 6, 2014 at 5:11 PM, Ashley Greene <span dir="ltr"><<a href="mailto:agreene24@gmail.com" target="_blank">agreene24@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Eelke,<br><br></div>It worked fine once I just created a new cfg. It's always the small, overlooked things...<br>
<br></div><div>Thanks!!<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div>Ashley<br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Aug 6, 2014 at 4:32 PM, Eelke Spaak <span dir="ltr"><<a href="mailto:eelke.spaak@donders.ru.nl" target="_blank">eelke.spaak@donders.ru.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Ashley,<br>
<br>
In addition to Roey's remark, in general I would say it is not a good<br>
idea to explicitly modify the xxx.cfg.previous structure. Just create<br>
a new cfg from scratch for each FT function call:<br>
<br>
cfg = [];<br>
cfg.method = 'mtmfft';<br>
cfg.foi = ....<br>
etc.<br>
<br>
compfreq = ft_freqanalysis(cfg, comp);<br>
<br>
Best,<br>
Eelke<br>
<div><div><br>
On 6 August 2014 09:07, Roey Schurr <<a href="mailto:roeysc@gmail.com" target="_blank">roeysc@gmail.com</a>> wrote:<br>
> Dear Ashly,<br>
><br>
> I'm trying to recreate the error you got, but I couldn't.<br>
> Did you specify the method? Try using<br>
> comp.cfg.previous.method = 'mtmfft';<br>
><br>
> When I run ft_freqanalysis using the mtmfft method on the comp structure I<br>
> get from the ICA tutorial, everything seems to work fine. Did you try<br>
> running the same function on a tutorial structure?<br>
><br>
> Best.<br>
> Roey<br>
><br>
><br>
> On Wed, Aug 6, 2014 at 8:12 AM, Ashley Greene <<a href="mailto:agreene24@gmail.com" target="_blank">agreene24@gmail.com</a>> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> I'm somewhat new to ft, so forgive me if this is a seemingly trivial<br>
>> question.<br>
>> I ran runica on ft preprocessed MEG data, but I also want to see the<br>
>> frequency power spectrum of the components. I've tried using freqanalysis on<br>
>> the components in the following manner:<br>
>><br>
>><br>
>> comp.cfg.previous.tapsmofrq=4;<br>
>> comp.cfg.previous.foi=[0:2:30];<br>
>> comp.cfg.previous.t_ftimwin = 5./comp.cfg.previous.foi;<br>
>> comp.cfg.previous.toi=[-0.5:0.05:1.5];<br>
>> comp.cfg.previous.channel='all';<br>
>><br>
>> [freqcomp] = ft_freqanalysis(comp.cfg.previous, comp)<br>
>><br>
>><br>
>> // but the errors I receive are as follows:<br>
>><br>
>><br>
>> Warning: Input arguments must be scalar.<br>
>> > In specest/private/ft_preproc_polyremoval at 57<br>
>> In ft_specest_mtmfft at 66<br>
>> In ft_freqanalysis at 526<br>
>> ??? For colon operator with char operands, first and last operands must be<br>
>> char.<br>
>><br>
>> Error in ==> ft_preproc_polyremoval at 58<br>
>> for i = 0:order<br>
>><br>
>> Error in ==> ft_specest_mtmfft at 66<br>
>> dat = ft_preproc_polyremoval(dat, polyorder, 1, ndatsample);<br>
>><br>
>> Error in ==> ft_freqanalysis at 526<br>
>> [spectrum,ntaper,foi] = ft_specest_mtmfft(dat, time, 'taper',<br>
>> cfg.taper, options{:}, 'feedback', fbopt);<br>
>><br>
>> // Is using freqanalysis on the components possible? If so, what needs to<br>
>> be modified in order to employ it? If not, is there another method to<br>
>> outputting the frequency power spectrum of ica components?<br>
>><br>
>> Thanks,<br>
>><br>
>> Ashley<br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> fieldtrip mailing list<br>
>> <a href="mailto:fieldtrip@donders.ru.nl" target="_blank">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>
><br>
><br>
><br>
> _______________________________________________<br>
> fieldtrip mailing list<br>
> <a href="mailto:fieldtrip@donders.ru.nl" target="_blank">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>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">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>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>