[FieldTrip] How to use ft_average_sens?
Jung, Patrick
patrick.jung at esi-frankfurt.de
Tue Jan 29 09:54:12 CET 2013
Thanks, Vladimir, that works. I did not understand that I have to concatenate the arrays.
-----Original Message-----
From: fieldtrip-bounces at science.ru.nl [mailto:fieldtrip-bounces at science.ru.nl] On Behalf Of Vladimir Litvak
Sent: 28 January 2013 13:11
To: FieldTrip discussion list
Subject: Re: [FieldTrip] How to use ft_average_sens?
Dear Patrick,
I would start with reading the function's help which says:
% Use as
% [asens, afid] = ft_average_sens(sens)
% where sens is a 1xN structure array containing N sensor arrays % % Additional options should be specified in key-value pairs and can be
% 'weights' a vector of weights (will be normalized to sum==1)
% 'fiducials' optional structure array of headshapes
Therefore you should do:
AvgGrad = ft_average_sens([grad_01, grad_02]);
Best,
Vladimir
On Mon, Jan 28, 2013 at 12:07 PM, 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