Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- y = wavread(filename)
- y(1:find(y~=y(1))-1) = 0;
- y = cat(2,ones(1,10),randi(100,[1 20])); % say y is your .wav file
- y(cumsum(diff(y)) == 0 ) = [];
- y(1) = [];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement