This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: startgroove1 = 5 + floor((h1-(numgrooves+10))*rand(1)) startgroove2 = 5 + floor((h2-(numgrooves+10))*rand(1)) %pick a random start sample in each wave matrix startsamp1 = ceil((w1-numsamples+1)*rand(1)) startsamp2 = ceil((w2-numsamples+1)*rand(1)) %compute ssd over the ith window A = wavemat1(startgroove1:startgroove1+numgrooves-1, startsamp1:startsamp1+numsamples-1) B = wavemat2(startgroove2:startgroove2+numgrooves-1, startsamp2:startsamp2+numsamples-1) ssd(i) = sum(sum( (A-B).^2)) end ssdmean = mean(ssd) ssdstd_dev = std(ssd) Sheet1 Page 2...
View Full 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.
- Spring '08