2. In the following problems, you will use both bandlimited and linear interpolation to reconstruct the following signal
Posted: Sun May 15, 2022 5:20 pm
In the following problems, you will use both bandlimited and
linear interpolation to reconstruct the following signals
from samples obtained at sample times π‘=ππ with π=1/2.
a) Create a vector ts which contains the sampling times π‘=ππ on the
interval |π|β€π. Store in the vectors xs1 and xs2 the samples of
π₯1(π‘) and π₯2(π‘) at the corresponding times in ts. Use stem to plot
xs1 and xs2 versus ts.
PLEASE WRITE MATLAB CODES
2. In the following problems, you will use both bandlimited and linear interpolation to reconstruct the following signals 1() 8rt COS 32(0) = {1- 11/2 , 14:52 0, otherwise, from samples obtained at sample times t = nt with T = 1/2. a) Create a vector ts which contains the sampling times t = nt on the interval It S 4. Store in the vectors asl and is the samples of x.(t) and xy(t) at the corresponding times in ts. Use stem to plot xsl and xs2 versus ts. To reconstruct x.(t) and xz(t) from these samples, note that the reconstructed signals can only be computed at a finite number of samples in MATLAB. Therefore, you will calculate the interpolated signals only at t=n/8 on the interval |t| 32. In other words, on the interval |t| 2 you will calculate three samples in between every sample contained in xsl and X2 HOMEWORK INSTRUCTIONS The submission date of this assignment is the first laboratory hour of next week. Copies and similar homework will not be evaluated. The sampling interval of the interpolated signal is thus T, = 1/8. Call y.(t) and yan(t) the signals given by interpolating the samples of x1(t) and xz(t) with the interpolating filter huif (t). Similarly, call yΔ±tin (t) and yazin (t) the signals given by interpolating the samples of x.(t) and xz(t) with the linear interpolator hiin (t). b) Set Ti = 1/8, and create a vector of the interpolation times t;= [-2:T;: 2). Store in the vectors hbl and hlin the values of hoif(t) and hin(t) at the interpolation times. Use plot to display these two impulse responses versus ti. What are the values of impulse responses at the sample times ts? The peak value of each impulse response should be at t = 0.
linear interpolation to reconstruct the following signals
from samples obtained at sample times π‘=ππ with π=1/2.
a) Create a vector ts which contains the sampling times π‘=ππ on the
interval |π|β€π. Store in the vectors xs1 and xs2 the samples of
π₯1(π‘) and π₯2(π‘) at the corresponding times in ts. Use stem to plot
xs1 and xs2 versus ts.
PLEASE WRITE MATLAB CODES
2. In the following problems, you will use both bandlimited and linear interpolation to reconstruct the following signals 1() 8rt COS 32(0) = {1- 11/2 , 14:52 0, otherwise, from samples obtained at sample times t = nt with T = 1/2. a) Create a vector ts which contains the sampling times t = nt on the interval It S 4. Store in the vectors asl and is the samples of x.(t) and xy(t) at the corresponding times in ts. Use stem to plot xsl and xs2 versus ts. To reconstruct x.(t) and xz(t) from these samples, note that the reconstructed signals can only be computed at a finite number of samples in MATLAB. Therefore, you will calculate the interpolated signals only at t=n/8 on the interval |t| 32. In other words, on the interval |t| 2 you will calculate three samples in between every sample contained in xsl and X2 HOMEWORK INSTRUCTIONS The submission date of this assignment is the first laboratory hour of next week. Copies and similar homework will not be evaluated. The sampling interval of the interpolated signal is thus T, = 1/8. Call y.(t) and yan(t) the signals given by interpolating the samples of x1(t) and xz(t) with the interpolating filter huif (t). Similarly, call yΔ±tin (t) and yazin (t) the signals given by interpolating the samples of x.(t) and xz(t) with the linear interpolator hiin (t). b) Set Ti = 1/8, and create a vector of the interpolation times t;= [-2:T;: 2). Store in the vectors hbl and hlin the values of hoif(t) and hin(t) at the interpolation times. Use plot to display these two impulse responses versus ti. What are the values of impulse responses at the sample times ts? The peak value of each impulse response should be at t = 0.