Skip to content

Instantly share code, notes, and snippets.

@jtdreisb
Created October 25, 2011 15:19
Show Gist options
  • Save jtdreisb/1313093 to your computer and use it in GitHub Desktop.
Save jtdreisb/1313093 to your computer and use it in GitHub Desktop.
ee368 lab14
t = linspace(0,100,100);
f=10000;
y=sin(2*pi*f*t);
plot(t,y);
grid;
title('Aliasing in a 10 kHz sinusoid sampled at 0.99 Hz');
ylabel('Magnitude');
xlabel('Time in Seconds');
t = linspace(0,100,101);
y=sin(2*pi*t);
plot(t,y);
grid;
title('1 Volt 1Hz sinusoid sampled at 1 Sample per second');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment