Homework 2

Homework 2 - EE 4541 Homework #2 Problem 6 > A=[0 2 -1 3 7...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
EE 4541 Homework #2 Problem 6 >> A=[0 2 -1 3 7 1 2 -3 0 0] A = 0 2 -1 3 7 1 2 -3 0 0 >> B=[0 1 -1 2 -2 4 1 -2 5 0] B = 0 1 -1 2 -2 4 1 -2 5 0 >> C=xcorr(A,B) C = Columns 1 through 8 0.0000 0.0000 10.0000 -9.0000 19.0000 36.0000 -14.0000 33.0000 Columns 9 through 16 0.0000 7.0000 13.0000 -18.0000 16.0000 -7.0000 5.0000 -3.0000 Columns 17 through 19 0.0000 0.0000 0.0000 Problem 7 Part a >> ecg1=detrend(ecg); >> aortic1=detrend(aortic); >> radial1=detrend(radial); >> xc1=xcorr(aortic1,ecg1,'coef'); >> lag=-1999:1999; >> plot(lag,xc1) -2000 -1500 -1000 -500 0 500 1000 1500 2000 -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 >> xc1_lag=find(xc1==max(xc1))-1999 xc1_lag = -40 %The maximum value occurs at index -40 >> max(xc1) ans =
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
0.2721 %The maximum value is 0.2721 Part b >> xc2=xcorr(aortic1,radial1,'coef'); >> plot(lag,xc2) -2000 -1500 -1000 -500 0 500 1000 1500 2000 -0.5 0 0.5 1 >> xc2_lag=find(xc2==max(xc2))-1999 xc2_lag = -12 %The maximum value occurs at index -12 >> max(xc2) ans = 0.9780 %The maximum value is 0.9780
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This homework help was uploaded on 04/17/2008 for the course EE 4541 taught by Professor Ebbini during the Fall '08 term at Minnesota.

Page1 / 4

Homework 2 - EE 4541 Homework #2 Problem 6 > A=[0 2 -1 3 7...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online