Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buf = zeros(1, 22050);
- for i = 1:300;
- index = i * 2000;
- val = 1/i;
- while (index > 22050) || (index < 1)
- if (index > 22050)
- index = 22050*2 - index;
- end
- if (index <= 0)
- index = -index;
- end
- end
- buf(index) = buf(index) + val;
- end
- plot(buf)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement