Question

In: Computer Science

% Illustration of Aliasing Effect in the Time-Domain clf; T = 0.1;f = 13; n =...

% Illustration of Aliasing Effect in the Time-Domain

clf;
T = 0.1;f = 13;
n = (0:T:1)';
xs = cos(2*pi*f*n);
t = linspace(-0.5,1.5,500)';
ya = sinc((1/T)*t(:,ones(size(n))) - (1/T)*n(:,ones(size(t)))')*xs;
plot(n,xs,'o',t,ya);grid;
xlabel('Time, msec');ylabel('Amplitude');
title('Reconstructed continuous-time signal y_{a}(t)');
axis([0 1 -1.2 1.2]);

a. Run the program to generate both the discrete-time signal x[n] and its
continuous-time equivalent ya(t), and display them.
b. What is the range of t and the value of the time increment in the program?
What is the range of t in the plot? Change the range of t so as to display the
full range ya(t) being computed in the above program and run it again.
Comment on the plot generated after this change.

Solutions

Expert Solution

Please UPVOTE my answer if you find this explaination to be helpful !!

SOLUTION

part a:

CODE:

clf; clc; close all; clear all;
T = 0.1; f = 13;
n = (0:T:1)';
xs = cos(2*pi*f*n);
t = linspace(-0.5,1.5,500)';
ya = sinc((1/T)*t(:,ones(size(n))) - (1/T)*n(:,ones(size(t)))')*xs;
% subplot(211)

plot(n,xs,'o',t,ya);
grid on;
xlabel('Time, msec');
ylabel('Amplitude');
title('Reconstructed time signal y(a)(t)');
axis([0 1 -1.2 1.2]);
legend('x(n)','y(t)')

OUTPUT SCREEN:

part b:

The range of t is defined in following line:

t = linspace(-0.5,1.5,500)';

The range of t is from -0.5 to 1.5 with increment of 0.0040 or we can also say that there are 500 samples used

Now increasing the range of t but keeping the number of samples equal to 500

CODE:

clf; clc; close all; clear all;
T = 0.1; f = 13;
n = (0:T:1)';
xs = cos(2*pi*f*n);
t = linspace(-0.5,1.5,500)';
ya = sinc((1/T)*t(:,ones(size(n))) - (1/T)*n(:,ones(size(t)))')*xs;
subplot(211)
plot(n,xs,'o',t,ya);
grid on;
xlabel('Time, msec');
ylabel('Amplitude');
title('Reconstructed time signal y(a)(t) for t =[-.5,1.5]');
axis([0 1 -1.2 1.2]);
legend('x(n)','y(t)')


t = linspace(-10,10,500)';
ya = sinc((1/T)*t(:,ones(size(n))) - (1/T)*n(:,ones(size(t)))')*xs;
subplot(212)
plot(n,xs,'o',t,ya);
grid on;
xlabel('Time, msec');
ylabel('Amplitude');
title('Reconstructed time signal y(a)(t)for t =[-10,10]');
axis([0 1 -1.2 1.2]);
legend('x(n)','y(t)')

OUTPUT SCREEN:

Please UPVOTE my answer if you find this explaination to be helpful !!


Related Solutions

1. Let T : Mn×n(F) → Mn×n(F) be the transposition map, T(A) = At. Compute the...
1. Let T : Mn×n(F) → Mn×n(F) be the transposition map, T(A) = At. Compute the characteristic polynomial of T. You may wish to use the basis of Mn×n(F) consisting of the matrices eij + eji, eij −eji and eii. 2.  Let A = (a b c d) (2 by 2 matrix) and let T : M2×2(F) → M2×2(F) be defined asT (B) = AB. Represent T as a 4×4 matrix using the ordered basis {e11,e21,e12,e22}, and use this matrix to...
proof: L t^(n+1)*f(t)=(-1)^(n+1)*(d^(n+1)/ds^(n+1))*F(s)
proof: L t^(n+1)*f(t)=(-1)^(n+1)*(d^(n+1)/ds^(n+1))*F(s)
The position vector F(t) of a moving particle at time t[s] is given by F(t)= e^t...
The position vector F(t) of a moving particle at time t[s] is given by F(t)= e^t sin(t)i-j+e^t cos(t)k a) Calculate the acceleration a(t). b) Find the distance traveled by the particle at time t = 3π/2, if the particle starts its motion at time t = π/2. c) Find the unit tangent vector of this particle at time t = 3π/2. d) Find the curvature of the path of this particle at time t = 3π/2.
1. Using domain and range transformations, solve the following recurrence relations: a) T(1) = 1, T(n)...
1. Using domain and range transformations, solve the following recurrence relations: a) T(1) = 1, T(n) = 2T(n/2) + 6n - 1 b) T(1) = 1, T(n) = 3T(n/2) + n^2 - n
The t statistic for a test of ?0:?=13 ??:?>13 based on n = 17 observations has...
The t statistic for a test of ?0:?=13 ??:?>13 based on n = 17 observations has the value t = 1.72. (b) Using the appropriate table in your formula packet, bound the p-value as closely as possible: _____ < p-value < _____
Find T(t), N(t), aT, and aN at the given time t for the space curve r(t)....
Find T(t), N(t), aT, and aN at the given time t for the space curve r(t). [Hint: Find a(t), T(t), aT, and aN. Solve for N in the equation a(t)=aTT+aNN. (If an answer is undefined, enter UNDEFINED.) Function    Time r(t)=9ti-tj+(t^2)k t=-1 T(-1)= N(-1)= aT= aN=
a) Let T(n) be a running time function defined as T(n) = 3n^2 + 2n +...
a) Let T(n) be a running time function defined as T(n) = 3n^2 + 2n + 5, is this ϴ(n^2 )? Explain prove your answer using the definitions of big-o and omega notations. b) Solve the following recurrence relations using Master theorem. a. ?(?) = 3? ( ?/3 ) + ? b. ?(?) = 5?( ?/2 ) + 2?^2 please help them with both
Using Table F, find the P-value interval for each test value. a. t = 3.025, n = 24, right-tailed b. t = - 1.145, n = 5, left-tailed c. t = 2.179, n = 13, two-tailed d. t = 0.665, n = 10, right-tailed
Using Table F, find the P-value interval for each test value.a. t = 3.025, n = 24, right-tailedb. t = - 1.145, n = 5, left-tailedc. t = 2.179, n = 13, two-tailedd. t =  0.665, n = 10, right-tailed
Example 1.8. Fix a domain D, and let V be the set of all functions f(t)...
Example 1.8. Fix a domain D, and let V be the set of all functions f(t) defined on D. Define addition and scalar multiples as with polynomials for all t ∈ D: (f + g)(t) = f(t) + g(t) (cf)(t) = cf(t) Then V is a vector space as well, the axioms are verified similarly to those for Pn. Verify that V in the previous example satisfies the axioms for a vector space.
Standing for a long time will decrease COP ? T or F
Standing for a long time will decrease COP ? T or F
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT