MATLAB code for the given problem:
clc;clear all;close all;
%continous time signal xa(t)
k1=-400;k2=2;a1=-57.5364;a2=21.0721;f1=300;T=10*(1/f1);
t=-T:T/500:T
xa=((k1*t.*(exp(-a1*t))).*(t<=0))+(k2*(exp(-a2*t)).*(cos(2*pi*f1*t)).*(t>=0))
subplot(321)
plot(t,xa,'b');xlabel('t');ylabel('xa(t)');title('xa(t)')
%non causal part of xa(t)
xa1=xa.*(t<0)
subplot(322)
plot(t,xa1,'r');xlabel('n');ylabel('xa1(t)');title('xa1(t)')
%causal part of xa(t)
xa2=xa.*(t>=0)
subplot(323)
plot(t,xa2,'m');xlabel('n');ylabel('xa2(t)');title('xa2(t)')
fsamp=200;Ts=1/fsamp;
n=-T*fsamp:1:T*fsamp
t=n/fsamp;
%sampled signal x(n) and x2(n)
x=((k1*(n/fsamp).*(exp(-a1*n/fsamp))).*(n<0))+(k2*(exp(-a2*n/fsamp)).*(cos(2*pi*f1*n/fsamp)).*(n>=0))
x1=x.*(n<0)
x2=x.*(n>=0)
subplot(324)
stem(n,x1,'b');xlabel('n');ylabel('x1(n)');title('x1(n)')
subplot(325)
stem(n,x2,'m');xlabel('n');ylabel('x2(n)');title('x2(n)')
subplot(326)
stem(n,x,'r');xlabel('n');ylabel('x(n)');title('x(n)')
%Enery of the entire signal
E=sum((abs(x)).*2)
Plots:
Command window:
E = 49.771
please, provide answer along with its matlab code. 10. Consider the continuous- time signal kite a1ua(-t) + kze-a2t...
(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 the sampling of the continuous-time signal x(t) to obtain a discrete-time signal x[n (1)-10cos(1000m + π/3) + 20cos(2000m + π/6). 110points! ], where x a) What is the maximum sampling interval (minimum sampling frequency) that could be used to ensure an aliasing free sampling of this signal? b) Plot the spectrum of the sampled signal if x() is sampled using a sampling frequency of (i) 2500 Hz (ii) 1800 Hz and state whether there will be an aliasing...
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...
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?
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...
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]...
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,...
Consider the function r (t)7sin (11π) A discrete-time signal is produced by sampling x (t) at a rate f, to give x [n] Acos (aon + φ) Determine values for A, a, and φ, and determine whether the signal has been over-sampled or under-sampled, when a) fs10 Hz b) f 5 Hz
Consider a sampler which samples the continuous-time input signal x(t) at a sampling frequency fs = 8000 Hz and produces at its output a sampled discrete-time signal x$(t) = x(nTs), where To = 1/fs is the sampling period. If the sampled signal is passed through a unity-gain lowpass filter with cutoff frequency of fs/2, sketch the magnitude spectrum of the resulting signal for the following input signals: (a) x(t) = cos(6000nt). (b) x(t) = cos(12000nt). (c) x(t) = cos(18000nt).
Consider the continous time signal x(t) - u(t) where u(t) is the unit step, sampled at a sampling period Ts- 1/4 to produce a discrete time signal rn] (a) Plot the signal r[n] over an appropriate interval (b) Compute and plot the short term energy for 10 successive blocks using a rectangular window of width 4 (c) Compute and plot the Zero Crossing Rate for 10 successive blocks using a rectangular window of width 4 Consider the continous time signal...