Question

In: Electrical Engineering

a) Let ?(?) = cos(2??) and ?(?) = cos(20??). Write the mathematical expression for the Fourier...

a) Let ?(?) = cos(2??) and ?(?) = cos(20??). Write the mathematical expression for the Fourier transform of ?(?) = 4[1 + 0.5?(?)]?(?) as a function of both ? (rad/s) and ? (Hz) by hand. Moreover, plot the magnitude spectrum of ?(?) by hand as functions of both ? (rad/s) and ? (Hz).

b) By using a 2x1 subplot, plot ?(?) signal in the first row. Take ? between -20 s and 20 s with an increment of 1 ms. Limit the x-axis between -2 s and 2 s. Moreover, calculate and plot the magnitude spectrum of ?(?) as a function of ? (Hz) in the second row of the subplot. Note that, Fourier Transform of ?(?) should be calculated and plotted by using fft and fftshift functions of MATLAB. Limit the x-axis between -15 Hz and 15 Hz. Do not forget axis labels.

Solutions

Expert Solution

MATLAB code is given below in bold letters.

clc;
close all;
clear all;


% define sampling rate
fs = 1000; % sampling frequency
Ts = 1/fs; % sampling time
t = -2:Ts:2; % time vector

% define the signals m(t) and c(t)
m = cos(2*pi*t);
c = cos(20*pi*t);

% define s(t)
s = 4*(1+0.5*m).*c;

% Finding FFT of s(t)
N = nextpow2(length(s));
S = fftshift(fft(s,2^N));
S = S / length(s);
k = -(length(S)-1)/2:1:length(S)/2;
f = k/length(S) * fs;

% plot the signals and its spectrum
figure;
subplot(211);
plot(t,s);grid;
xlabel('time');
ylabel('Amplitude');
title('s(t)');

subplot(212);
plot(f,abs(S));grid;
xlabel('Frequency in Hz');
ylabel('Amplitude');xlim([-15 15]);
title('Double sided Magnitude spectrum of s(t)');


Related Solutions

An economy's production possibility boundary is given by the mathematical expression 20 = 4 A +...
An economy's production possibility boundary is given by the mathematical expression 20 = 4 A + B, where A is the quantity of good "a" and B is the quantity of good "b". [Hint: To help you answer this question, use the formula Y = mX + b and have good "a" quantities correspond to X-axis values and good "b" quantities correspond to Y-axis values.] Part 1: If all the resources in the economy are allocated to producing good "a",...
4) Write the mathematical expression for water potential (includes solute and pressure potential) and give a...
4) Write the mathematical expression for water potential (includes solute and pressure potential) and give a brief definition for each variable.
Problem 2 Statement: Let r1 = 1 + cos θ and r2 = 3 cos θ....
Problem 2 Statement: Let r1 = 1 + cos θ and r2 = 3 cos θ. (a) Graph each function in the rθ-plane. (b) Find all intersection points (both collision and non-collision). (c) Find the area common to the two graphs.
An economy's production possibility boundary is given by the mathematical expression  110 =  2 A + B,   where A...
An economy's production possibility boundary is given by the mathematical expression  110 =  2 A + B,   where A is the quantity of good "a" and B is the quantity of good "b".  [Hint: To help you answer this question, use the formula Y = mX + b and have good "a" quantities correspond to X-axis values and good "b" quantities correspond to Y-axis values.] Part 1: If all the resources in the economy are allocated to producing good "a", what is the maximum...
use matlab y(t)=10*(cos(2*pi*500*t)+cos(2*pi*1000*t)+ cos(2*pi*1500*t)). e) Down sample y(t) by a factor of 6. Sketch the Fourier...
use matlab y(t)=10*(cos(2*pi*500*t)+cos(2*pi*1000*t)+ cos(2*pi*1500*t)). e) Down sample y(t) by a factor of 6. Sketch the Fourier transform with appropriate frequency axis. Check if all frequency components are correct? Up-sample the time-domain signal obtained in e) by a factor of 6. Use appropriate filter for interpolation. Sketch the Fourier transform of the up-sampled and filtered signal. Does the resulting signal show all frequency components of the original signal y(t)?
use matlab y(t)=10*(cos(2*pi*500*t)+cos(2*pi*1000*t)+ cos(2*pi*1500*t)). e) Down sample y(t) by a factor of 6. Sketch the Fourier...
use matlab y(t)=10*(cos(2*pi*500*t)+cos(2*pi*1000*t)+ cos(2*pi*1500*t)). e) Down sample y(t) by a factor of 6. Sketch the Fourier transform with appropriate frequency axis. Check if all frequency components are correct? Up-sample the time-domain signal obtained in e) by a factor of 6. Use appropriate filter for interpolation. Sketch the Fourier transform of the up-sampled and filtered signal. Does the resulting signal show all frequency components of the original signal y(t)?
Given    V=100V    R=10kΩ    C=10µF    (10 pts) Determine the mathematical expression for vc Determine the mathematical expression for ic Computer the...
Given    V=100V    R=10kΩ    C=10µF    (10 pts) Determine the mathematical expression for vc Determine the mathematical expression for ic Computer the capacitor voltage at t=150 ms Computer the capacitor current at t=150 ms Locate the points on the voltage and current curves.
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)
1.) Give the three mathematical definitions of conservative forces? 2.) Explain what the expression "Inertial force"...
1.) Give the three mathematical definitions of conservative forces? 2.) Explain what the expression "Inertial force" means? and why are inertial forces not really forces? 3.) For pulley-type simple machines specifically, the ideal mechanical advantage is equal to ____? 4.) for ramp-type simple machines specifically, the ideal mechanical advantage is equal to ____?
Find dy/dx for a & b a) sin x+cos y=1 b) cos x^2 = xe^y c)Let...
Find dy/dx for a & b a) sin x+cos y=1 b) cos x^2 = xe^y c)Let f(x) = 5 /2 x^2 − e^x . Find the value of x for which the second derivative f'' (x) equals zero. d) For what value of the constant c is the function f continuous on (−∞,∞)? f(x) = {cx^2 + 2x, x < 2 ,   2x + 4, x ≥ 2}
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT