clc;
clear all;
close all;
fm=1500;
Fs = 2*fm;
T = 1/Fs;
L = 3000;
t = (0:L-1)*T;
x = cos(2*pi*500*t)+cos(2*pi*1500*t);
N = 2^nextpow2(L);
X = fft(x,N)/L;
f = Fs/2*linspace(0,1,N/2+1);
plot(f,2*abs(X(1:N/2+1)))
title('Amplitude Spectrum of x(t)')
xlabel('Frequency (Hz)')
ylabel('|X(f)|')
consider the signal using matlab Problem 2: Consider a signal: x[n] 3cos(n7/3) + 2sin(nt/4)+ cos(n7/5) Using Matlab, (1) Plot this signal in time domain. Can you identify the various frequencies in this signal? Use n 0:1:1000 (2) Plot this signal in frequency domain using the "fft" command. Identify the individual frequencies in the plot. (3) Calculate the frequencies of these signals. In the frequency plot, 1000 2
Digital Signal Processing DFT Consider a speech signal x() that has the following frequency spectrum: xga) 1 + cos( -/100 a) Select appropriate values of N and T that will help us carry out DFT-based spectral analysis of this signal x401@) 800 such that the continuous-time frequencies are sampled no farther than 10 Hz apart. b) Ignore the issue of spectral leakage; under this assumption, provide a closed-form expression for the DFT of the signal using the values selected in...
Problem 2 (Spectrum of a rectangular signal): In this problem, the amplitude spectrum of the signal 1 or Ot 2 ms x(t)- 0 otherwise is to be analysed (b) Numerical calculation of the spectrum: (i) Use Matlab to generate and plot a vector containing the sample values of the rectangular signal defined in (2) sampled at f 8kHz. Choose the number N of sample values so that it is a power of 2 and that the signal duration is at...
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...
MATLAB Code Question alpha = 2.3 beta = 4.3 zeta = 9.1 PROBLEM 4 (20 points). Consider three sinusoids with the following amplitudes and phases a.cs(2n(500t)) β.cos(2n(500t) +0.5r) x1n] x2[n] rn = cos(2(500t)0.75) Create a MATLAB program to sample each sinusoid and generate a sum of three sinusoids, that is using a sampling rate of 8,000 Hz over a range of 0.1 seconds Use the MATLAB function stem) to plot r[n] for the first 20 samples Use the MATLAB function...
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.
P-3.8 Consider the signal ob d x (t) = 10 + 20 cos(21 (100)t + ) + 10 cos(21 (250)t) L (a) Using Euler's relation, the signal x(t) defined above can be expressed as a sum of complex exponential signals using the finite Fourier synthesis summation (3.37) Determine values for fo, N, and all the complex amplitudes, az. It is not necessary to evaluate any integrals to obtain ak. (b) Is the signal x(t) periodic? If so, what is the...
Consider x(t) 1 + cos(50t) + cos( 150t) a. (5) Is x(t) periodic? If so, what is the fundamental period of x(t)? Which harmonics are contained in the signal? b. (5) Sketch the spectrum of x(t) c. (10) Determine x [n] if fs is the Nyquist rate and sketch its spectrum over the Nyquist interval. (5) Sketch the spectrum of x[n] over the Nyquist interval if fs is half of the Nyquist rate. What observations can you make about the...
(1) Consider the following continuous-time signal: (1) 2ua(-t+t)ua(t), where its energy is 20 milli Joules (2 x 103Joules). The signal ra(t) is sampled at a rate of 500 samples/sec to yield its discrete-time counter part (n) (a) Find ti, and hence sketch ra(t). (b) From part (a), plot r(n) and finds its energy (c) Derive an expression for the Fourier transform of a(n), namely X(ew). (d) Plot the magnitude spectrum (1X(e)) and phase spectrum 2(X(e). (e) Consider the signal y(n)...
Q2 Consider a communication signal x(t) described by the following mathematical expression: x(t)=2 cos(2000) + 4 sin? (2000) – 2+4rec(t)cos(6000mt) Analyse the communication signal x(t) then consider the following: (i) Determine the Fourier transform of the signal x(t). (ii) Plot the double-sided amplitude spectrum of the signal x(t).