%%Matlab code for continuous and discrete signal plot
clear all
close all
%Answering question a.
%function for continuous signal
x=@(t) cos(2*pi*10.*t+pi/4)+cos(2*pi*30.*t+pi/4);
t=0:0.001:1;
x_t=x(t);
figure(1)
plot(t,x_t)
xlabel('t')
ylabel('x(t)')
title('t vs. x(t) plot')
%Answering question b.
n = [-5 -4 -3 -2 -1 0 1 2 3 4 5 7 8 9 10];
x_n = (1/4)*(heaviside(n)-heaviside(n-4));
figure(2)
stem(n,x_n)
xlabel('x(n)')
ylabel('n')
title('Discrete x_n plot')
%%%%%%%%%%%%% End of Code %%%%%%%%%%%%
Its related to MATLAB Generate a continuous-time signal z(t)-cos(2π 10t + 5) + cos(2π30t + 5). You may use the part of...
Time series analysis 2. Set n 100 and generate and plot the time series xt 2 cos(2π.06t) + 3 sin(2π.06t) Ý,-4 cos(2n. 10t) + 5 sin(2m10) z, 6 cos(2π·40t) + 7 sin(2π·40t) (a) Use the periodogram function in R to plot the periodogram of Vi. Can you explain the spikes? (b) Now let wi ~ N(0, 25) be iid and plot the periodogram of the series V +w. Does it still pick out the periodic components? 2. Set n 100...
ints) A continuous time signal is given below: x(t) = 10 + 3 sin (20t + 3) + 5 cos(40π) This is sampled at t = 0.01 n to get a the discrete-time signal x[n], which is then applied to an ideal DAC to obtain a reconstructed continuous time signal y(t). a. i. Determine x[n] and graph its samples, using Matlab, along with the signal x(t) in one plot, plot a few cycles of x(t). ii. Determine the reconstructed signal,...
10. Find the Fourier transform of a continuous-time signal x(t) = 10e Su(t). Plot the magnitude spectrum and the phase spectrum. If the signal is going to be sampled, what should be the minimum sampling frequency so that the aliasing error is less than 0.1 % of the maximum original magnitude at half the sampling frequency. 11. A signal x(t) = 5cos(2nt + 1/6) is sampled at every 0.2 seconds. Find the sequence obtained over the interval 0 st 3...
Question #4: Consider the signal x(t) cos(2π (a) Sketch the signal. Please make sure to label all relevant features. (b) Is the signal continuous or discrete? Explain. (c) Is the signal even, odd, or neither? Demonstrate
please, provide answer along with its matlab code. 10. Consider the continuous- time signal kite a1ua(-t) + kze-a2t cos (2mfi t) ua (t), Ta(t) where ki =-400, k2 2, a1 = -57.5364, a2 21.0721, and fi=300 Hz. (a) Plot ra(t). Identify the non-causal part of Ta (t) as Tal(t) and the causal part as Ta2(t). (b) Assuming that aa(t) is sampled using the sampling frequency fsamp 200 Hz, determine the discrete-time counter-parts corresponding to aal (t) and ra2(t), named a1(n)...
Consider the continuous time signal: 2. , π (sin (2t) (Sin (8t) A discrete time signal x[n] -xs(t) -x(nTs) is created by sampling x() with sampling interval, 2it 60 a) Plot the Fourier Transform of the sampled signal, i.e. Xs (jo). b) Plot the DTFT of the sampled signal, ie, X(eja) o) Repeat (a) with 7, 2π d) Repeat (b) with , 18 Consider the continuous time signal: 2. , π (sin (2t) (Sin (8t) A discrete time signal x[n]...
THTCos (200Tt) -oo<t< oo. We want to convert = {0,1,2,...} Problem 1. Suppose we have a continuous-time signal r(t) (t) into a discrete-time signal yn] where we sample the signal every t= nT, seconds for n a. Determine the frequency fo of the cosine in Hertz and its corresponding period (T = 1/fo). b. Plot the continuous signal rt) for t = [0,4T] seconds so that four periods of the signal are plot command) plotted (use the (0, 1, 2,...
Problem 3: Sampling a Cosine (again) The continuous-time signal ra(t) = cos (150) is sampled with sampling period T, to obtain a discrete-time signal x[n] = XanT). 1. Compute and sketch the magnitude of the continuous-time Fourier transform of ra(t) and the discrete-time Fourier Transform of x[n] for T, = 1 ms and T, = 2 ms. 2. What is the maximum sampling period Ts max such that no aliasing occurs in the sampling process?
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...
(a) A system is generating the following continuous-time signal: x(t) = 1 + cos(100nt) + sin(300nt) An engineer wants to sample this signal to be analysed digitally on a computer. He decides to sample it at 500Hz. Did the engineer make the right decision? State why? What is its corresponding discrete-time signal x[n].