align_waves.m

align_waves.m - function alignStruct =

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

View Full Document Right Arrow Icon
Sheet1 Page 1 function alignStruct = align_waves(waves1,waves2,gstart,gend,offset) %alignStruct = align_waves(waves1,waves2,gstart,gend,offset) - % performs alignment on small subregion of right side of matrix % waves1 with all of waves2. gstart and gend are optional % parameters to specify the starting and ending grooves of waves1 % to try allignment. offset is and optional parameter specifying % how many samples from the end of waves1 to try alignment on. % The results are stored in the struct alignStruct with fields as % follows (eg.): % first: [1 3] - says that the end of groove 1 of waves1 lines % up with the beginning of groove 3 on waves2. % last: [41 43] - says the the end of groove 41 of waves1 lines % up with the beginning of groove 3 on waves2. % sample: [13001 7065] - says the end sample of waves1 lines up % with sample 7065 of waves2 %PTC 8 May 2004: Added code to check validity of the alignment t0 = clock global Gdebug [rows1 cols1] = size(waves1) [rows2 cols2] = size(waves2)
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/20/2008 for the course ENGR 190 taught by Professor Staff during the Spring '08 term at Santa Clara.

Page1 / 6

align_waves.m - function alignStruct =

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

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