% Program: W2E1b.m
% Generating 64 samples of x(t)=sin(2*pi*f*t) with a
% Frequency of 1KHz, and sampling frequency of 8KHz.
N=64; % Define Number of samples
n=0:N-1; % Define vector n=0,1,2,3,...62,63
f=25000; % Define the frequency
fs=400000; % Define the sampling frequency
x=cos(2*pi*(f/fs)*n + pi/4); % Generate x(t)
plot(n,x); % Plot x(t) vs. t
grid;
title('Sinewave [f=45KHz, fs=200KHz]');
xlabel('Sample Number');
ylabel('Amplitude');
