[Eeglablist] Fwd: integrate new markers with the old ones
Cedric Cannard
ccannard at protonmail.com
Wed Nov 9 14:35:35 PST 2022
Dear Ivano,
Once you have the latency in samples (latency in seconds * EEG.srate), you can add them to existing events like this for example:
EEG.event(end+1).type = 'wave onset'; % or whatever name you want for your marker
EEG.event(end).latency = yourLatencyInSamples;
Repeat for all your events (in a loop if you want), and type
EEG = eeg_checkset(EEG,'eventconsistency'); %check event structure and resort by latency.
Cheers,
Cedric Cannard
------- Original Message -------
On Wednesday, November 9th, 2022 at 8:44 AM, ivano triggiani <ivanotriggiani at gmail.com> wrote:
> Hello,
>
> can anyone help with this?
>
> Kind regards,
>
> Ivano
>
> ---------- Forwarded message ---------
> From: ivano triggiani ivanotriggiani at gmail.com
>
> Date: Thu, Nov 3, 2022 at 1:57 PM
> Subject: integrate new markers with the old ones
> To: eeglablist at sccn.ucsd.edu
>
>
>
> Hello everyone,
>
> I have files with EEG channels and markers (BrainVision system, so the
> markers are called S1, S2), plus an extra channel with a photosensor (with
> a square wave). I also need to mark the onset of the wave. I wrote a
> function to identify the timing of the onset.
> How can I integrate the "new" markers with the ones already in the file?
>
> Thank you very much to anyone who can help me,
>
> Ivano
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu
More information about the eeglablist
mailing list