Matlab code that shifts a given signal by 12.5 ms (to get 80 Hz response) and takes the last segment (12.5 ms) and put it in the gap that is made by the shift.

Then shifts the new signal by 12.5 ms (actually it is 25 ms because it is shifting for the shifted signal) and continue shifting until the signal ends (the given signal's window is about 215 ms) and finally average them all.

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

%12.5ms corresponds to 64 points in the signal (64*0.0002-0.0002=0.0126 = 12.5ms)

%so we will shift by 64 points each round.

%The number of shifts is the length of the signal divided by 64, so when we

% shift the signal number_of_shifts times it is back to the original signal and we don't shift anymore.

number_of_shifts = length(ABR)/64;

%We make an empty matrix to put in each row a shifted version of the previous row...

This is only a preview of the solution. Please use the purchase button to see the entire solution