Question

In: Electrical Engineering

Plot the signal s(t) = cos(2πt), and then illustrate the resulting samples with the following sampling...

Plot the signal s(t) = cos(2πt), and then illustrate the resulting samples with the following sampling intervals: [30 points] •

Ts= 0.5 sec. •

Ts= 0.75 sec •

Ts =1 sec.

(a) For each case, also sketch the reconstructed continuous time signal from the samples using linear interpolation (i.e. connecting samples by straight lines).

(b) In which case the sampled signal has aliasing distortion? What is the minimal sampling frequency and the corresponding sampling interval needed to avoid aliasing?

Solutions

Expert Solution

Solution:

(a) Matlab code is developed to plot the signals with the following sampling periods

Ts = 0.5sec

Ts = 0.75sec

Ts = 1sec.

clear all;
clc;
f = 1; %1hz
T = 1/f; %time period
t = 0:0.000001:4; %t vector declaration
N=length(t); %length of sequence
theta = (0/180)*pi;
y = cos(2*pi*f*t+theta); %y declaration
figure(1); %figure
subplot(2,2,1); %subplot
plot(t,y);
grid on;
title('Sin plot');
xlabel ('time');
ylabel ('Amp');
%sampling time
% fs = 16e3;
Ts = 0.5; %2msec
n=1:((T)*4)/Ts;
t1 = n*Ts;
% n = n*Ts;
y1 = cos(2*pi*f*n*Ts+theta);
% hold on;
subplot(2,2,2);
plot(t1,y1);
xlim([0 4]);
grid on;
title('dicrete signal sn signal');
xlabel ('time');
ylabel ('Amp');
%%%%for sampling Ts = 0.75sec
Ts = 0.75; %2msec
n=1:((T)*4)/Ts;
t1 = n*Ts;
% n = n*Ts;
y2 = cos(2*pi*f*n*Ts+theta);
% hold on;
subplot(2,2,3);
plot(t1,y2);
xlim([0 4]);
grid on;
title('dicrete signal sn signal');
xlabel ('time');
ylabel ('Amp');
%%%%for sampling Ts = 1sec
Ts = 1; %2msec
n=1:((T)*4)/Ts;
t1 = n*Ts;
% n = n*Ts;
y2 = cos(2*pi*f*n*Ts+theta);
% hold on;
subplot(2,2,4);
plot(t1,y2);
xlim([0 4]);
grid on;
title('dicrete signal sn signal');
xlabel ('time');
ylabel ('Amp');

%%%%end of the code

Plotted waveforms:

(b) As per the nyquist theorem, sampling period is twice the period of the signal.

for Ts = 0.5, sampling theorem is valid and signal can be reconstructed.

for Ts = 0.75, sampling theorem is not valid and signal can not be reconstructed and aliasing effect will be present.

for Ts = 1, sampling theorem is not valid and signal can not be reconstructed and aliasing effect will be present.


Related Solutions

Sampling 2 periods of each signal in (below) with 100 samples and plot the signal with...
Sampling 2 periods of each signal in (below) with 100 samples and plot the signal with respect to the same frequency reference signal cos(ω0t): a.xa(t)=50sin(100t+0.2) b.xb(t)=25cos(5000t−π/4) c.xc(t)=50sin(1000t+ π/4)−20cos(1000t−0.5) d.xd(t)=30sin(3000(t−5×10−5)) e.xe(t)=25cos(5000t−2.25π) f.xf(t)=−25cos(5000t+3π/4)
Find the Fourier coefficients of the following signal. x(t) = 5 + 2sin(w0.t) + cos(2.w0.t) -...
Find the Fourier coefficients of the following signal. x(t) = 5 + 2sin(w0.t) + cos(2.w0.t) - 3sin(2.w0.t)
plot the double sided amplitude and phase spectrum for the following signal. f(t) = e^(-2|t| )
plot the double sided amplitude and phase spectrum for the following signal. f(t) = e^(-2|t| )
A continuous signal contains the following two components: x1(t) = 3 cos 20πt x2(t) = 3...
A continuous signal contains the following two components: x1(t) = 3 cos 20πt x2(t) = 3 cos 50πt (a) Find the minimum required sampling rate to avoid aliasing. (b) Draw the discrete time signals obtained after sampling, when sampled with Fs = 100 Hz. Explain the disadvantage(s), if any, of sampling beyond the Nyquist rate. (c) Assume the sampling rate is Fs= 40 Hz, which components are exposed to aliasing effects? Support your answer by showing “Nyquist intervals” and the...
Digitization of signals Consider the analog signal s(t) = 5sin(500t +p 5)+ cos(200t +p 4) to...
Digitization of signals Consider the analog signal s(t) = 5sin(500t +p 5)+ cos(200t +p 4) to be transferred over a digital communications system. (a) Compute the maximum allowable sampling period that the analog-to-digital converter (ADC) must use to ensure the perfect reconstruction of the signal at the receiver. (b) What theorem governs the choice made in part (a)? (c) How many samples of the analog signal do we need to store in order to reproduce 10p seconds of it (i.e.,...
.         Given the following non-periodic signal:    x(t) = 3 e-5t cos(12t) u(t)             Find the Fourier...
.         Given the following non-periodic signal:    x(t) = 3 e-5t cos(12t) u(t)             Find the Fourier transform expression X(ω) without using Table.             Calculate the magnitude spectrum of X(ω) for ω = π/8, π/4, and π/2
Consider an AM modulator with the followings: the message signal is m(t)= 0.5 cos (2πfmt), the...
Consider an AM modulator with the followings: the message signal is m(t)= 0.5 cos (2πfmt), the carrier signal frequency is 200kHz, the carrier signal amplitude is unity, the amplitude sensitivity is 1.6. Which one is the power of the lower side-band ?
energy and power of signals. (a) Plot the signal x(t) = e−tu(t) and determine its energy....
energy and power of signals. (a) Plot the signal x(t) = e−tu(t) and determine its energy. What is the power of x(t)? (b) How does the energy of z(t) = e−∣t∣, −∞ < t < ∞, compare to the energy of z1(t) = e−tu(t)? Carefully plot the two signals. (c) Consider the signaly(t) = sign[xi(t)] =  1 xi(t) ≥ 0 −1 xi(t) < 0 for −∞ < t < ∞,i = 1,2. Find the energy and the power of...
Determine the Nyquist rate for signal x(t)defined as follows: x(t)= 20,000sinc(20,000*pi*t) Plot the spectrum of the...
Determine the Nyquist rate for signal x(t)defined as follows: x(t)= 20,000sinc(20,000*pi*t) Plot the spectrum of the sampled signal and check whether aliasing error exists for the following values of the sampling rate (ws): 40,000*pi, 20,000*pi,10,000*pi
For each of the following transactions, construct T-account(s) to illustrate the change(s) to bank balance sheets....
For each of the following transactions, construct T-account(s) to illustrate the change(s) to bank balance sheets. a)   Midwest Bank receives a $10,000 deposit. Banking regulations require banks to hold 10% of the checkable deposits as reserves. Midwest Bank uses part of its excess reserves to make a loan worth $5,000. b) You deposit $1,000 cash into your checking account at Bank of America. Banking regulations require banks to hold 9% of the checkable deposits as reserves. Please show work
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT