Mercurial > hg > pmhd
diff extra/genspecsines3.m @ 10:6840f77b83aa
commit
author | Yading Song <yading.song@eecs.qmul.ac.uk> |
---|---|
date | Sun, 21 Apr 2013 10:55:35 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/extra/genspecsines3.m Sun Apr 21 10:55:35 2013 +0200 @@ -0,0 +1,12 @@ +Y = genspecsines([10.3, 20.6, 30.9], [-10, -13, -16], [0, 0, 0], 1024); +%plot(ifft(Y)); +f1=10.3; +f2=20.6; +f3=30.9; +t = [0:1/44100:0.1-1/44100]; +x1 = cos(2*pi*f1*t); +x2 = cos(2*pi*f2*t); +x3 = cos(2*pi*f3*t); +x = x1 + x2+ x3; +plot(x); +