Dear SPM developers and users,
I am re-writing a function to epoch EEG data, as we want to epoch around
the offset/RT (variable), but baseline correct around the onset of each
event (fixed).
To this end, I want to get the events I have from another file into my D
object, using: D = events(D,1,evtspm); with evtspm the structure with
all my events as in the SPM format.
However, I get the following message:
Error using subsindex
Function 'subsindex' is not defined for values of class 'meeg'.
This is because the 'events' function called is the Matlab built-in:
which events
built-in (C:\Program Files\MATLAB\R2014b\toolbox\matlab\datatypes\events)
Everything is on my path and SPM12 was running when I attempted this. It
also shows that the Matlab events function overloads the meeg/events.
What can I do to be able to call the meeg/events?
Thank you for your help.
Best,
Jessica
|