<div dir="ltr"><div>To where I understand, yes. Just remember that is amplitude and not power (you probably knew that). I should remark that the filter part is tricky and critical.<br><br></div>Best<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 28, 2014 at 3:48 PM, Max Cantor <span dir="ltr"><<a href="mailto:mcantor@umich.edu" target="_blank">mcantor@umich.edu</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">Ah, so if I do a narrow BP filter around a single frequency, looped over however many frequencies I want, and then restructure the looped data into a dimensionally similar matrix as powspctrm in a fieldtrip-type structure, I could effectively turn it into a TFR?</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 28, 2014 at 3:05 PM, Rodrigo Montefusco <span dir="ltr"><<a href="mailto:rmontefusco@med.uchile.cl" target="_blank">rmontefusco@med.uchile.cl</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><div>Hi Max,<br><br></div>to what I understand, the output of Hilbert will be the amplitude of the input signal (envelope). If you want to use that information, then the only step you should add before is a very good and sweet narrow band filter (as narrow as you want your frequency bins). Then, the filter design is the hard part, because you need a filter that is able to filter out other frequencies without introducing any kind of artifact.<br><br></div>Hopefully someone else has something to add, or if I'm missing any stuff.<br><br></div>Best<br><br>Rodrigo<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Tue, Oct 28, 2014 at 2:16 PM, Max Cantor <span dir="ltr"><<a href="mailto:mcantor@umich.edu" target="_blank">mcantor@umich.edu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi,<div><br></div><div>So this is not a specific method-based question, but something more general.</div><div><br></div><div>I've been slowly reading through bits and pieces of Mike Cohen's 'Analyzing Neural Time Series Data' book, in an attempt to gain a better understanding of how things like Fourier Transform, Wavelets, and Hilbert work on a more fundamental level.</div><div><br></div><div>Fieldtrip does not have a built in Hilbert time frequency analysis (that I'm aware of), but from having read through that chapter of Cohen's book I've been able to effectively create a hilbert analysis of my own.</div><div><br></div><div>However, I was wondering if it would be possible to use ft_preproc_hilbert (setting cfg.hilbert = 'complex', 'real', etc. in ft_preprocessing) to do this in a more efficient and fieldtrip-compatible way. It seems I can use this setting to get the analytic signal, phase, power, and other things, but since this is on raw/epoched data, there is no obvious way I can think of to apply a time or frequency series as in the other TFRs. It seems I could either write a fieldtrip function from scratch, which I'm not prepared to do, or write a function to reformat fieldtrip data to work using the Cohen function, and then output it back into a fieldtrip function, which would be fine but I'm more interested to know if the ft_preproc_hilbert function can do what I want more efficiently.</div><div><br></div><div><b>So boiling it down</b><b>, my questions are:</b></div><div><b><br></b></div><div>1. Can cfg.hilbert parameter for ft_preprocessing (or ft_preproc_hilbert called directly) be used as an ad hoc hilbert TFR, and if so what ad hoc steps would one need to take?</div><div><br></div><div>2. If it cannot be used this way, what situations is it meant for?</div><span><font color="#888888"><div><div><br></div>-- <br><div dir="ltr">Max Cantor<div>Lab Manager</div><div>Computational Neurolinguistics Lab</div><div>University of Michigan</div></div>
</div></font></span></div>
<br></div></div>_______________________________________________<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></blockquote></div><br></div>
<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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Max Cantor<div>Lab Manager</div><div>Computational Neurolinguistics Lab</div><div>University of Michigan</div></div>
</div>
</div></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>