MATLAB code is given below in bold letters.
clc;
close all;
clear all;
% Question a
% define delta_t
ts = 0.01;
% define fs
fs = 1/ts;
% define time vector
t = 0:ts:63*ts;
x = cos(2*pi*12*t) + cos(2*pi*24*t);
% power of the signal computation
N = length(x);
P = 1/N*sum(x.^2)
% PSD computation
xdft = fft(x);
xdft = xdft(1:N/2+1);
psdx = (1/(fs*N)) * abs(xdft).^2;
psdx(2:end-1) = 2*psdx(2:end-1);
freq = 0:fs/length(x):fs/2;
figure;
plot(freq,psdx);grid on;
title('PSD of x(t)');
xlabel('Frequency (Hz)');
ylabel('Power (dB)');
From the above figure it is observed that the power spectrum has peak at frequencies 12 and 24 Hz which are the frequencies constituting the signal x(t).
% Question b
% define delta_t
ts = 0.05;
% define fs
fs = 1/ts;
% define time vector
t = 0:ts:63*ts;
x = cos(2*pi*12*t) + cos(2*pi*24*t);
% power of the signal computation
N = length(x);
P = 1/N*sum(x.^2)
% PSD computation
xdft = fft(x);
xdft = xdft(1:N/2+1);
psdx = (1/(fs*N)) * abs(xdft).^2;
psdx(2:end-1) = 2*psdx(2:end-1);
freq = 0:fs/length(x):fs/2;
figure;
plot(freq,psdx);grid on;
title('PSD of x(t)');
xlabel('Frequency (Hz)');
ylabel('Power (dB)');
From the above figure it is observed that the power spectrum has peak at frequencies 4 Hz and 8 Hz which are not the frequencies constituting the signal x(t). This is because of the fact that the sampling frequency does not meet the required Nyquist sampling rate.
Perform an FFT on the function : f(t) = cos(2712t) + sin (2124t) a. Use a...
Using Excel, plot the function f(t)=3*cos(500*π*t) + 5*cos(800*π*t) from 00025 to .1s at .0025s intervals. Connect the points with straight lines. Explain the shape of the resulting plot. Find the FFT using Microsoft Excel.
1. Given a baseband signal m(t) sin(1000mt) cos(3000nt) + cos(3700nt a. Sketch the spectrum of m(t) (Hint. sin(a) cos(b) 0.5 sin(a +b) +0.5sin a-b)) b. Sketch the spectrum of DSB-CS signal m(t)cos(10000mt) C ldentify the upper sideband {USB) and lower sideband (LSB) spectra d. Give the black diagram of the receiver to receive DSB-CS signal in (b). 2. baseband signal m(r)--0.5 + Σ..小(t-n)-u(t-0.5-n)] where ult) is the Given unit step function, an amplitude modulated signal is as SAM 107+ m(0cos...
Exercises: u used to the instructor b the end of next lab. 20 102 Plot the f(t)-sinc(20r) cos(300t)sinc (10t) cos(100t) Use the fast Fourier transform to find the magnitude and phase spectrum of the signal and plot over an appropriate range. Use appropriate values for the time interval and the sampling interval. Note that in Matlab sinc(x)-, so we need to divide the argument by n to make it match the given function. Le, sinc(20t/pi) Hint: Use the parameters from...
Using MATLAB, Please read carefully, EXPLAIN CODE AND ANSWERS, DISCUSS RESULTS, I NEED EVERY PART (B) Implement Matlab code for each part as described below: i) Define the following signal in time and plot it where Ai 10, A2-3, fi-10 Hz, f2-40 Hz. part of the DFT, and discuss the results. zero. Do this carefully for both positive and negative frequencies. Call this signal G (f). ii) Compute the DFT S(f) of s (t) using the fft() function. Plot the...
How do I calculate the period of this function? Sin(t)^2 /(2+Cos(4t)) Clear[f, tl; f [t_l Sin[t]^2/(2 Cos [4 t]); Cvclos - A.
Signal xo(t) 5 cos (200π1+ 품 ) + 4 sin (300π) is sampled at a rate of Fs = 1 kHz to obtain the discrete-time signal x[n]. (a) Determine the spectrum X(ej ) of x[n] and plot its magnitude as a function of ω rad sam in tad and as a function of F in Hz. Explain whether the original signal xe(t) can be recovered from xln]. (b) Repeat part (a) for 500 Hz. (c) Repeat part (a) for 100...
1. (a) Evaluate the Fourier coefficients a, an, ba for the function defined as f)-2 cos() for-π/2 s sn2 and zero else over the period of 2T, do NOT use MATLAB or a calculator for integrations. All the steps should be shown. Write a few terms of the Fourier series expansion Plot 2 or 3 cycles of the Fourier series using MATLAB and verify whether the plot matches the given waveform Find Co and Cn and plot the amplitude spectrum...
all parts -2t e - (13 points) Let f(t) cos 2t, sin 2t) for t 2 0. F() (a) (4 points) Find the unit tangent vector for the curve d (F(t)-v(t)) using the product rule for dt (b) (5 points) Let v(t) = 7'(t). Calculate the dot product and simplify v(t) (c) (4 points) For an arbitrary vector-valued function 7 (t) with velocity vector = 1, what can be said about the relationship between F(t) and v(t)? if F(t) (t)...
(1 point) Fit a trigonometric function of the form f(t) ,5), using least squares c1 sin(t) + c2 cos(t) to the data points (0, -1), (,7), (n, 5), co Co = C1 C2 (1 point) Fit a trigonometric function of the form f(t) ,5), using least squares c1 sin(t) + c2 cos(t) to the data points (0, -1), (,7), (n, 5), co Co = C1 C2
Now use MATLAB to generate and plot 15seconds of this signal in the time-domain.Use the fft() function to find the fourier transform of this signal and plot its magnitude spectrum School of Engineering Task 3 - The Fourier Transform: Scaling property Exercise: Let's take a look now at using the Fourier transform on aperiodic signals. Consider the real exponential signal from the discharging capacitor in tas 3 of laboratory 1 which was found to be: You(t)=e"u(t) Begin by calculating manually...