[FieldTrip] EMG detect

Holly Rossiter RossiterH at cardiff.ac.uk
Thu Oct 13 15:29:47 CEST 2016


Oh I see, thank you. It’s working now.

Holly

From: fieldtrip-bounces at science.ru.nl [mailto:fieldtrip-bounces at science.ru.nl] On Behalf Of Schoffelen, J.M. (Jan Mathijs)
Sent: 13 October 2016 14:25
To: FieldTrip discussion list <fieldtrip at science.ru.nl>
Subject: Re: [FieldTrip] EMG detect

Hi Holly,

You should first create this function, by copying and pasting from the example (essentially just take the second block of code on the page you are working from).
Then, you may need to adjust a bit of the code for your own purpose (most likely the name of the emg-channel.

Good luck,
Jan-Mathijs

On 13 Oct 2016, at 15:09, Holly Rossiter <RossiterH at cardiff.ac.uk<mailto:RossiterH at cardiff.ac.uk>> wrote:

Hi there,

I am trying to use the muscle activity from an EMG channel to use as a trial definition and have found the tutorial on it but it doesn’t seem to recognise the term ‘trialfun_emgdetect’ – I’ve tried with the most recent version of fieldtrip and it’s still not working. This is the error I’m getting:

Undefined function 'func2str' for input arguments of type 'double'.

Error in ft_definetrial (line 158)
    error('the specified trialfun ''%s'' was not found', func2str(cfg.trialfun));

Thanks,
Holly
_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20161013/cba7fa23/attachment.html>


More information about the fieldtrip mailing list