ejercicio 13
k = 5; m = 10; fo = 10; Bo = 2.5;
N = 2^m; T = 2^k/fo;
ts = (0:N-1)*T/N;
df = (0:N/2-1)/T;
SampledSignal = Bo*sin(2*pi*fo*ts)+Bo/2*sin(2*pi*fo*2*ts);
An = abs(fft(SampledSignal, N))/N;
plot(df, 2*An(1:N/2));
hold on
SampledSignal = exp(-2*ts).*sin(2*pi*fo*ts);
An = abs(fft(SampledSignal, N))/N;
plot(df, 2*An(1:N/2))
hold on
SampledSignal = sin(2*pi*fo*ts+sin(2*pi*fo*.1*ts));
An = abs(fft(SampledSignal, N))/N;
plot(df, 2*An(1:N/2));
hold on
SampledSignal = sin(2*pi*fo*ts-5*exp(-2*ts));
An = abs(fft(SampledSignal, N))/N;
plot(df, 2*An(1:N/2))
hold on