clear
n=128;
T=5;
dt=T/n;
f0=6.2;
f1=10;
t=(1:n)*dt;
y=sin(2*pi*f0*t)+2*sin(2*pi*f1*t);
fanalf(y,T);