[FieldTrip] fieldtrip Digest, Vol 123, Issue 1

Yankı Tandırcıoğlu yankitandircioglu at gmail.com
Mon Feb 1 12:40:26 CET 2021


Sorry, I just saw your other question.

I am a beginner, so I don't know what to expect in terms of values of
sample & ndatsample relating to your question. This is the struct of the
data:

temp =

  struct with fields:

        hdr: [1×1 struct]
      label: {306×1 cell}
      trial: {[306×227572 double]}
       time: {[1×227572 double]}
    fsample: 2000
       grad: [1×1 struct]
        cfg: []

Thank you again.

Best regards,

Yankı Tandırcıoğlu

Yankı Tandırcıoğlu <yankitandircioglu at gmail.com>, 1 Şub 2021 Pzt, 14:35
tarihinde şunu yazdı:

> Dear Stephen Whitmarsh,
>
> Thank you for your kind and rapid response.
>
> I tried to run your advice, however the problem remains the same. :(
>
> May there any other possible solutions?
>
> Thank you.
>
> Yankı Tandırcıoğlu
>
>
> <fieldtrip-request at science.ru.nl> adresine sahip kullanıcı 1 Şub 2021
> Pzt, 14:15 tarihinde şunu yazdı:
>
>> Send fieldtrip mailing list submissions to
>>         fieldtrip at science.ru.nl
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>         https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>> or, via email, send a message with subject or body 'help' to
>>         fieldtrip-request at science.ru.nl
>>
>> You can reach the person managing the list at
>>         fieldtrip-owner at science.ru.nl
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of fieldtrip digest..."
>>
>>
>> Today's Topics:
>>
>>    1. Padding Error (Yankı Tandırcıoğlu)
>>    2. Re: Padding Error (Stephen Whitmarsh)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Mon, 1 Feb 2021 13:21:59 +0300
>> From: Yankı Tandırcıoğlu  <yankitandircioglu at gmail.com>
>> To: fieldtrip at science.ru.nl
>> Subject: [FieldTrip] Padding Error
>> Message-ID:
>>         <
>> CAExVZ1hKdGZH7zjj-xHjC545EdxK7JRAm0nWf9zbMzpXTPn_xA at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Dear community,
>>
>> My name is Yankı Tandırcıoğlu and I am a student at Middle East Technical
>> University. Currently I am analyzing MEG dataset.
>>
>> I tried using ft_freqanalysis to obtain TFR. However, when I call
>> ft_freqanalysis, I receive the following error message:
>>
>> Error using ft_specest_mtmconvol (line 103)
>> the padding that you specified is shorter than the data
>>
>> The cfg and data I use are as follows:
>>
>> cfg                         = [];
>> cfg.channel      = {'megplanar'};
>> cfg.lpfilter = 'yes'
>> cfg.lpfreq = 150
>> cfg.continuous = 'yes'
>> RestCondition_1 = ft_preprocessing(cfg, temp);
>>
>>
>> cfg            = [];
>>
>> cfg.output    = 'pow';
>>
>> cfg.channel    = 'megplanar';
>>
>> cfg.method     = 'mtmconvol';
>>
>> cfg.taper      = 'hanning';
>>
>> cfg.foi        = 2:1:40;
>>
>> cfg.toi        = [0:0.05:2];
>>
>> cfg.trials     = 'all';
>>
>> cfg.t_ftimwin  = ones(length(cfg.foi),1).*0.5;
>>
>> cfg.keeptrials= 'yes'; %% we keep the single trials
>>
>> freq_Rest1    = ft_freqanalysis(cfg,RestCondition_1);
>>
>> Can someone tell me if there is something wrong with the cfg settings I
>> use
>> or if I am doing something wrong at any other place? T Any help would be
>> appreciated.
>>
>> Best,
>>
>> Yankı Tandırcıoğlu
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210201/719a039b/attachment-0001.htm
>> >
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Mon, 1 Feb 2021 11:45:49 +0100
>> From: Stephen Whitmarsh <stephen.whitmarsh at gmail.com>
>> To: FieldTrip discussion list <fieldtrip at science.ru.nl>
>> Subject: Re: [FieldTrip] Padding Error
>> Message-ID:
>>         <CAFrxm=
>> w2Ws7c9-Ys7yHOhHL56Kkp_ovRHLCBhTyM8fTGXCQQvw at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hi Yanki,
>>
>> I suspect something is off with your sampling frequency / triallength;
>>
>> Try debugging:
>>
>> type: dbstop if error
>>
>> then run again, and see what is happening on line 102-103;
>>
>> if round(pad * fsample) < ndatsample
>>   ft_error('the padding that you specified is shorter than the data');
>> end
>>
>> Are the values of sample & ndatsample what you would expect?
>>
>> Hope this helps,
>> Stephen
>>
>>
>>
>>
>> Op ma 1 feb. 2021 om 11:29 schreef Yankı Tandırcıoğlu <
>> yankitandircioglu at gmail.com>:
>>
>> > Dear community,
>> >
>> > My name is Yankı Tandırcıoğlu and I am a student at Middle East
>> Technical
>> > University. Currently I am analyzing MEG dataset.
>> >
>> > I tried using ft_freqanalysis to obtain TFR. However, when I call
>> > ft_freqanalysis, I receive the following error message:
>> >
>> > Error using ft_specest_mtmconvol (line 103)
>> > the padding that you specified is shorter than the data
>> >
>> > The cfg and data I use are as follows:
>> >
>> > cfg                         = [];
>> > cfg.channel      = {'megplanar'};
>> > cfg.lpfilter = 'yes'
>> > cfg.lpfreq = 150
>> > cfg.continuous = 'yes'
>> > RestCondition_1 = ft_preprocessing(cfg, temp);
>> >
>> >
>> > cfg            = [];
>> >
>> > cfg.output    = 'pow';
>> >
>> > cfg.channel    = 'megplanar';
>> >
>> > cfg.method     = 'mtmconvol';
>> >
>> > cfg.taper      = 'hanning';
>> >
>> > cfg.foi        = 2:1:40;
>> >
>> > cfg.toi        = [0:0.05:2];
>> >
>> > cfg.trials     = 'all';
>> >
>> > cfg.t_ftimwin  = ones(length(cfg.foi),1).*0.5;
>> >
>> > cfg.keeptrials= 'yes'; %% we keep the single trials
>> >
>> > freq_Rest1    = ft_freqanalysis(cfg,RestCondition_1);
>> >
>> > Can someone tell me if there is something wrong with the cfg settings I
>> > use or if I am doing something wrong at any other place? T Any help
>> would
>> > be appreciated.
>> >
>> > Best,
>> >
>> > Yankı Tandırcıoğlu
>> >
>> > _______________________________________________
>> > fieldtrip mailing list
>> > https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>> > https://doi.org/10.1371/journal.pcbi.1002202
>> >
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210201/66e8a247/attachment-0001.htm
>> >
>>
>> ------------------------------
>>
>> Subject: Digest Footer
>>
>> _______________________________________________
>> fieldtrip mailing list
>> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>> _______________________________________________
>> fieldtrip mailing list
>> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>> https://doi.org/10.1371/journal.pcbi.1002202
>>
>>
>> ------------------------------
>>
>> End of fieldtrip Digest, Vol 123, Issue 1
>> *****************************************
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210201/a99e343d/attachment.htm>


More information about the fieldtrip mailing list