Created
October 25, 2011 15:19
-
-
Save jtdreisb/1313093 to your computer and use it in GitHub Desktop.
ee368 lab14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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