Skip to content

Instantly share code, notes, and snippets.

@bambuchaAdm
Created May 8, 2015 18:55
Show Gist options
  • Select an option

  • Save bambuchaAdm/718c17038279b039ec3a to your computer and use it in GitHub Desktop.

Select an option

Save bambuchaAdm/718c17038279b039ec3a to your computer and use it in GitHub Desktop.
LAB AUE
fm = 1 % 10, 100
fc = 40e3;
omegaM = 2*pi*fm;
omegaC = 2*pi*fc;
x = @(t) sin(omegaM * t);
y = @(t) sin(omegaC * t + integral(x, 0 , t));
fs = fc*2.1;
t = 0:(1/fs):1;
s = y(t);
S = fft(s);
plot(fs*t, S);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment