[FieldTrip] EMG detect

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Thu Oct 13 15:24:30 CEST 2016


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/bcb59f24/attachment-0002.html>


More information about the fieldtrip mailing list