[FieldTrip] simple question on frequency space representation

Tzvetan Popov tzvetan.popov at uni-konstanz.de
Mon Oct 24 16:56:07 CEST 2022


Dear Ivo,
cfg.pad=9; will add 9 sec of zero padding to your 1 sec signal that will result in your intended resolution. 

Good luck,
Tzvetan 

> Am 10/24/22 um 16:36 schrieb Ivaylo Iotchev via fieldtrip <fieldtrip at science.ru.nl>:
> 
> 
> Dear all,
> 
> this might be an easy one to answer, but being relatively new to Fieldtrip I think the fastest way for me to get there is to ask:
> 
> How do I control the padding size in Fieldtrip? So far all examples I have encountered in order to learn the programm only specify that it happens or not, e.g.
> 
> cfg.taper = 'Hanning'
> 
> However, my end-result doesn't give me the 0.1 Hz steps I am used to from specifying zero-padding in spectrogram, where I can have a clean succession of 0.1 Hz steps, e.g. 1.1 Hz, 1.2 Hz, 1.3 Hz... and so on...
> 
> Instead I currently get something like:
> 
> 0.9 Hz, 1.9 Hz, 2.9 Hz...
> 
> The latter resolution increases a little bit by specifying 0.1 Hz steps in the cfg.foi, but never reaches the fine-grained 0.1 steps of spectrogram. I know it's my bad, if you have time shine me the light :)
> 
> Thanks in advance,
> 
> Ivaylo (Ivo) Iotchev, PhD
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://doi.org/10.1371/journal.pcbi.1002202



More information about the fieldtrip mailing list