find_jump.m - waves2 = S.waves(:,1:round(end/2)) [rows1...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 function j_struct = find_jump(bundle) %$Revision: 1.1 $ $Author: mmccann $ $Date: 2004/05/08 20:44:20 $ global Gdir % load top bundle and bottom bundle into waves1 and waves2 S = load(sprintf('%s/%d.%d.waves.mat',Gdir,1,bundle)) waves1 = S.waves(:,1:round(end/2)) S = load(sprintf('%s/%d.%d.waves.mat',Gdir,1,bundle+1))
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: waves2 = S.waves(:,1:round(end/2)) [rows1 cols1] = size(waves1) samp_start = round(cols1/2) samp_end = samp_start+99 L = find_diffs(waves1(rows1-2:rows1,samp_start:samp_end), waves2(:,:)) j_struct.groove(1) = rows1-2 j_struct.groove(2) = L(1,2) j_struct.sample(1) = samp_start j_struct.sample(2) = L(1,3)...
View Full Document

Ask a homework question - tutors are online