Question

In: Electrical Engineering

a) Calculate and plot the DTFT of ?[?] = sin( (?/ 4)?) / ?? * cos...

a) Calculate and plot the DTFT of ?[?] = sin( (?/ 4)?) / ?? * cos ( ?/2 ?) by hand.

b) By using a 2x1 subplot, plot ?[?] signal defined in Question 1 in the first row. Take ? between -100 s and 100 s and limit x-axis between -20 sand 20 s. Be careful about when ? = 0. What is the value of ?[0]? While plotting ?[?] please write an if statement for ? = 0. After that, write a MATLAB code that calculates and plots the DTFT of ?[?]. Then, plot the DTFT of ?[?] in the second row of the subplot. Take 1000 equally spaced frequency values between -2π and 2π by using linspace. Do not forget axis labels.

Solutions

Expert Solution

  MATLAB CODE

clc;
w = -2*pi:0.0001:2*pi; % W Axis
n = -100:1:100; % Time axis

x = input('Enter signal in Discrete form : '); % Signal x[n]
temp = w' * n;
temp = -i * temp; % (-jwn)
e = exp(temp);
X = e * x';
subplot(2,1,1); plot(n, x);
xlabel('sec');

xlim([-20 20]);
title('Sinal in Time Domain');
subplot(2,1,2);
plot(w, abs(X));
xlabel('n');
title('DTFT');

Enter signal in Discrete form : sin(pi.*n/4)/(pi*n).*cos(pi*n/2)
>>

Note : After changing abs(X) to X


Related Solutions

verify the identities a.) (cos 8x + cos 4x) / (sin 8x - sin 4x) =...
verify the identities a.) (cos 8x + cos 4x) / (sin 8x - sin 4x) = Cot(2x) b.) tan^2(x/2) = 1 - 2cot(x)csc(x) + 2Cot^2x
proof Sin(A)-Sin(B), cos(A)+cos(B) Geometrically, A and B are acute angles
proof Sin(A)-Sin(B), cos(A)+cos(B) Geometrically, A and B are acute angles
Express sin 6θ as a polynomial in sin θ and cos θ.
Express sin 6θ as a polynomial in sin θ and cos θ.
Exercise 4: Find all local extrema for f ? = sin^2 ? + cos ? on...
Exercise 4: Find all local extrema for f ? = sin^2 ? + cos ? on the interval [− ?/ 2 , ?/ 2 ]. Verify your answer by graphing.
a. (5 Marks) 1 1 cos(x)cos(y) = -cos(x-y) + -cos(x + y) 1 l sin(x)sin(y) =...
a. 1 1 cos(x)cos(y) = -cos(x-y) + -cos(x + y) 1 l sin(x)sin(y) = -cos(x-y)--cos(x+ y) 1 l sin(x)cos(y) =—sin(x-y) +-sin(x + y) A DSB-FC (double sideband-full carrier) signal s(t) is given by, s(t) = n cos(2rr/cf)+ cos(2«-/mt)cos(2«-fct) What is the numeric value for the AM index of modulation, m, fors(f) ?
Calculate the Frenet framing, curvature and torsion of the helix (a cos(t), a sin(t), bt)
Calculate the Frenet framing, curvature and torsion of the helix (a cos(t), a sin(t), bt)
If u(t) = < sin(8t), cos(4t), t > and v(t) = < t, cos(4t), sin(8t) >,...
If u(t) = < sin(8t), cos(4t), t > and v(t) = < t, cos(4t), sin(8t) >, use the formula below to find the given derivative. d/(dt)[u(t)* v(t)] = u'(t)* v(t) + u(t)*  v'(t) d/(dt)[u(t) x v(t)] = <.______ , _________ , _______>
If u(t) = < sin(5t), cos(5t), t > and v(t) = < t, cos(5t), sin(5t) >,...
If u(t) = < sin(5t), cos(5t), t > and v(t) = < t, cos(5t), sin(5t) >, use the formula below to find the given derivative. d/dt[ u(t) * v(t)] = u'(t) * v(t) + u(t)* v'(t) d/dt [ u(t) x v(t)] = ?
Consider the vector functions ?(?) and ?(?), where ?(?) = 〈? sin ? , ? cos...
Consider the vector functions ?(?) and ?(?), where ?(?) = 〈? sin ? , ? cos ? , ?^2〉, ?(?) = 〈1, −1, 1〉, and ?′(?) = 〈1, 0, −1〉. Define ?(?) = ?(?) × ?(?) and find ?′(?)
Show that in 2D, the general orthogonal transformation as matrix A given by {{cos, sin}, {-sin,...
Show that in 2D, the general orthogonal transformation as matrix A given by {{cos, sin}, {-sin, cos}}. Verify that det[A] = 1 and that the transpose of A equals its inverse. Let Tij be a tensor in this space. Write down in full the transformation equations for all its components and deduce that Tii is an invariant.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT