[FieldTrip] How to use ft_average_sens?

Jung, Patrick patrick.jung at esi-frankfurt.de
Tue Jan 29 09:52:37 CET 2013


Thanks, Eelke, that works fine.

-----Original Message-----
From: fieldtrip-bounces at science.ru.nl [mailto:fieldtrip-bounces at science.ru.nl] On Behalf Of Eelke Spaak
Sent: 28 January 2013 13:21
To: FieldTrip discussion list
Subject: Re: [FieldTrip] How to use ft_average_sens?

Hi Patrick,

Use it like this:

sens(1) = grad_01;
sens(2) = grad_02;
AvgGrad = ft_average_sens(sens);

so the first input argument has to be a structure array of the different sens structures you want to average.

Best,
Eelke

On 28 January 2013 13:07, Jung, Patrick <patrick.jung at esi-frankfurt.de> wrote:
> Hello Fieldtrippers,
>
>
>
> I get an error message when using ft_average_sens
>
> and couldn't find the solution on the ft homepage.
>
> Here is my short code:
>
>
>
> grad_01 = ft_read_sens('Run_01.ds')
>
> grad_02 = ft_read_sens('Run_02.ds')
>
> AvgGrad = ft_average_sens(grad_01, grad_02)
>
>
>
> And that's error message:
>
> ??? Error using ==> ft_getopt
>
> the first input should contain key-value pairs
>
>
>
> Anyone who can help me there?
>
> Thanks and best regards,
>
> Patrick
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip

_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip




More information about the fieldtrip mailing list