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.

Solution PreviewSolution Preview

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...

By purchasing this solution you'll be able to access the following files:

for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available MATLAB for Computer Science Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats