[FieldTrip] Undefined variable?

"Jörn M. Horschig" jm.horschig at donders.ru.nl
Wed Jul 13 15:48:56 CEST 2011


Hi Maarten,

I just checked the ftp-version from July 6, and there meg_zaxis can 
indeed be found. Did you download fieldtrip-20110706? If you download 
fieldtrip-20110713, this error should not be there anymore, because all 
the labels are hard-coded now!

Best,
Jörn

On 7/13/2011 2:58 PM, Maarten van-Casteren wrote:
>
> Hi Jörn,
>
> Here's the error message:
>
> ??? Undefined function or variable 'meg_zaxis'.
>
> Error in ==> fileio/private/ft_senslabel at 2845
>
>         if size(find(meg_zaxis+1==i),2)
>
> Error in ==> fileio/private/ft_senstype at 241
>
>     elseif (mean(ismember(ft_senslabel('yokogawa440_old_planar'),    
> sens.label)) > 0.8)
>
> Error in ==> ft_chantype at 70
>
> if ft_senstype(input, 'neuromag')
>
> Error in ==> ft_read_event at 1048
>
>       analogindx = find(strcmp(ft_chantype(hdr), 'analog trigger'));
>
> Thanks,
>
> Maarten
>
> *From:*fieldtrip-bounces at donders.ru.nl 
> [mailto:fieldtrip-bounces at donders.ru.nl] *On Behalf Of *"Jörn M. Horschig"
> *Sent:* 13 July 2011 13:18
> *To:* Email discussion list for the FieldTrip project
> *Subject:* Re: [FieldTrip] Undefined variable?
>
> Hi Maarten,
>
> I searched my whole FT directory and could not find a single line 
> containing meg_zaxis. I also manually checked  planachannelset.m and 
> ft_senslabel.m and couldn't find the corresponding if-statement. Could 
> you copy the error message(s) from Matlab and send them over?
>
> Best,
> Jörn
>
> On 7/13/2011 12:38 PM, Maarten van-Casteren wrote:
>
> Hi,
>
> I haven't got much experience with Fieldtrip, or with Matlab,
>
> so I apologise if this is a stupid question.
>
> I've downloaded the latest version, and now my code crashes.
>
> It ran without problems before.
>
> The offending line is in ft_senslabel.m :
>
> if size(find(meg_zaxis+1==i),2)
>
> But 'meg_zaxis' doesn't seem to be defined anywhere.
>
> I've searched all code, but can only find 14 instances of
>
> precisely this line, in ft_senslabel.m and planarchannelset.m
>
> Am I missing something?
>
> Maarten
>
>   
>   
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl  <mailto:fieldtrip at donders.ru.nl>
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
>
>
>
> -- 
> Jörn M. Horschig
> PhD Student
> Donders Institute for Brain, Cognition and Behaviour
> Centre for Cognitive Neuroimaging
> Radboud University Nijmegen
> Neuronal Oscillations Group
>   
> P.O. Box 9101
> NL-6500 HB Nijmegen
> The Netherlands
>   
> Contact:
> E-Mail:jm.horschig at donders.ru.nl  <mailto:jm.horschig at donders.ru.nl>
> Tel:    +31-(0)24-36-68493
> Web:http://www.ru.nl/donders
>   
> Visiting address:
> Trigon, room 2.30
> Kapittelweg 29
> NL-6525 EN Nijmegen
> The Netherlands
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip


-- 
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group

P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands

Contact:
E-Mail: jm.horschig at donders.ru.nl
Tel:    +31-(0)24-36-68493
Web: http://www.ru.nl/donders

Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20110713/6f69ed80/attachment-0001.html>


More information about the fieldtrip mailing list