How to apply a linear ramp to start and end of several EEG epochs to attenuate the abrupt onset and offset?
Hey there! I have a set of auditory EEG data recorded collected with the presentation of auditory stimuli, where each stimulus consists of a 3-second speech with a 5-second inter-stimulus interval. Each stimulus onset is marked by an S1 trigger. Currently I have cut off the EEG data without audio input, but for the remain EEG data with auditory stimulation I would like to apply a linear ramp to to both sides of each trial corresponded neural response (10% at each side) to attenuate the abrupt onset and offset. Could you please help me with the code to accomplish this task? Thanks a lot!Hey there! I have a set of auditory EEG data recorded collected with the presentation of auditory stimuli, where each stimulus consists of a 3-second speech with a 5-second inter-stimulus interval. Each stimulus onset is marked by an S1 trigger. Currently I have cut off the EEG data without audio input, but for the remain EEG data with auditory stimulation I would like to apply a linear ramp to to both sides of each trial corresponded neural response (10% at each side) to attenuate the abrupt onset and offset. Could you please help me with the code to accomplish this task? Thanks a lot! Hey there! I have a set of auditory EEG data recorded collected with the presentation of auditory stimuli, where each stimulus consists of a 3-second speech with a 5-second inter-stimulus interval. Each stimulus onset is marked by an S1 trigger. Currently I have cut off the EEG data without audio input, but for the remain EEG data with auditory stimulation I would like to apply a linear ramp to to both sides of each trial corresponded neural response (10% at each side) to attenuate the abrupt onset and offset. Could you please help me with the code to accomplish this task? Thanks a lot! auditory eeg, matlab, linear ramp, smoothing eeg MATLAB Answers — New Questions