[Eeglablist] Question on how to check amplitude of each channel over specific time span in eeglab

Clement Lee cll008 at eng.ucsd.edu
Mon Mar 2 10:13:41 PST 2020


Hi Dongyang,

It looks like you are using `baseline` incorrectly as an index. Usually a
baseline is implemented as a range, such as [-150 0], but if you are trying
to use a single value, your command should include something like
erp(:,window(1):window(2)) - erp(:,baseline).

Best,
Clement Lee
Applications Programmer
Swartz Center for Computational Neuroscience
Institute for Neural Computation, UC San Diego
858-822-7535


On Sun, Mar 1, 2020 at 11:34 PM Dongyang Yan <ydyxjsk at gmail.com> wrote:

> Dear all,
>
> This is a mail for kindly asking about how to calculate the mean
> amplitude value
> of each channel over a specific time span (e.g., 140ms-250ms, aka., N170).
> I've tried to use
>
>
>
> *baseline = -150;window = [140 250];mean_amplitude = mean( erp( :,
> (window(1)-baseline):(window(2)-baseline)), 2 );*
>
> But it doesn't work. Would you help on this? Thank you so much. Look
> forward to hearing from you.
>
> Best regards,
> Dongyang Yan
> _______________________________________________
> 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