Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. y = wavread(filename)
  2. y(1:find(y~=y(1))-1) = 0;
  3.  
  4. y = cat(2,ones(1,10),randi(100,[1 20])); % say y is your .wav file
  5. y(cumsum(diff(y)) == 0 ) = [];
  6. y(1) = [];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement