1 Sample Xejtheta at theta 2pikN with N 16 How would i ri
1. Sample X(e^j(theta )) at theta = 2(pi)k/N with N = 16.
How would i right the matlab code to produce the solution to this problem?
Solution
The matlab code is given below:
% Sampling an exponential function
N = 16; % the length of signal
k = (0:N-1); % The indices of the signal
Theta = 2*pi*k/N;
x = exp(1i*Theta);
plot(x)
The result will be a continuous signal which can be sampled using the standard matlab functions with a given sampling rate.
