<div dir="ltr">Thank you Stephen,<div><br></div><div>Your answer has being very useful. I try your suggestions but as what I want is to perform the reconstruction of a range of frequency with the loop I do not achieve that, and the dpss method gives me error in matlab due to the lack of memory.</div><div><br></div><div>Even so than you very much!!!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Hau idatzi du Stephen Whitmarsh (<a href="mailto:stephen.whitmarsh@gmail.com">stephen.whitmarsh@gmail.com</a>) erabiltzaileak (2019 urt. 21, al. (13:03)):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Dear Elene,</div><div><br></div><div>ft_sourceanalysis only takes a single number (as stated in the help) in cfg.frequency. If cfg.frquency is empty it will first default to 'all', and then take the average frequency of the input data (cfg.frequency = mean(cfg.frequency) %on line 306). This is not clear, and I would suppose just breaking with an error would have been clearer.</div><div><br></div><div>If you want all the frequencies beamformed separately you will have to loop over frequencies.<br></div><div>If you want all the frequencies beamformed as an average over frequencies you can average your frequency data first with e.g. ft_selectdata (cfg.avgoverfreq = 'yes') or, better, do your freqanalysis with some sleppian smoothing (cfg.taper = 'dpss').</div><div><br></div><div>HTH,</div><div><br></div><div>Stephen<br></div><div><br></div><div> <br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 21 Jan 2019 at 12:35, Elene Beitia Loinaz <<a href="mailto:elene.beitia@alumni.mondragon.edu" target="_blank">elene.beitia@alumni.mondragon.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dear Fieldtripers,<div><br></div><div>I am trying to select a time-frequency tile for the performance of the Bermforming using DICS recostruction.</div><div><br></div><div>First, usng freq analysis I have chosen the time-frequency range I want, you can see it in the next code:</div><div><br></div><div><div>cfg              = [];</div><div>cfg.continuous   = 'yes';</div><div>cfg.output       = 'fourier';</div><div>cfg.channel      = 'all';      </div><div>cfg.keeptrials   = 'yes';</div><div>cfg.method       = 'mtmfft';   </div><div>cfg.taper        = 'hanning'; </div><div>cfg.foilim       = [8 12];<br></div><div>cfg.t_ftimwin     =[160:0.0039063:175];<br></div></div><div>data_Fourier      = ft_freqanalysis(cfg, data1);<br></div><div><br></div><div>If I look in the data_Fourier the frequency is define like a range, but when I do the beamforming it choses only one frequency (the middle of the range), I have not configured anything in cfg.frequency since I want to take the full range and not a single number in Hz, but still takes only one (in my case 10Hz).</div><div><br></div><div>Error:</div><div> Warning: could not determine dimord of "freq" in:</div><div><br></div><div>            label: {128×1 cell}</div><div>             freq: 10.0000</div><div>    fourierspctrm: [1×128 double]</div><div>        cumsumcnt: 94464</div><div>        cumtapcnt: 1</div><div>             elec: [1×1 struct]</div><div>              cfg: [1×1 struct]</div><div>           dimord: 'rpttap_chan_freq'</div><div><br></div><div> </div><div>Warning: the selected value 10 should be within the range of the array from 10 to 10 </div><div><br></div><div>Is there anyway to consider all the rage? Is it necessary to set other parameters in the cfg of the ft_freqanalysis/ft_sourceanalysis?</div><div><br></div><div>Thank you in advanced,</div><div><br></div><div>Elene.</div><div><br></div><div><br></div><div><br></div></div></div></div></div></div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>