Script1:
function x1=plotx1(n)
x1=5*(cos(2*pi*n/8))
endfunction
Script2:
function x2=plotx2(n)
x2=-8*(exp(-((n/6).^2)))
endfunction
script3:
clc;close all;clear all;
n=-20:1:20
x1=plotx1(n)
x2=plotx2(n)
x=plotx1(n).*plotx2(n)
subplot(311)
stem(n,x)
xlabel('n')
ylabel('x(n)')
title('x1(n) x2(n)')
x=(4*plotx1(n))+(2*plotx2(n))
subplot(312)
stem(n,x)
xlabel('n')
ylabel('x(n)')
title('x=(4*x1(n))+(2*x2(n))')
x=(2*plotx1(n/2))+(4*plotx2(n/3))
subplot(313)
stem(n,x)
xlabel('n')
ylabel('x(n)')
title('x=(2*x1(n/2))+(4*x2(n/3)')
Problem (D a) Consider the following two functions xuln] and x2[n]. Using MATLAB, plot the following combinations of the above two signals over a DT range, [-20, 20]. Problem (D a) Consider...
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...
MATLAB PLEASE
MATLAB PLEASE
9. Consider the following discrete-time exponential signal r(n) 75(-0.95)"u(n-3) (a) Plot r(n) over the range (b) Find the sum of the sequence for the above range. Hence, verify the result using the n0,1,2..,20. closed form. (c) Determine the sum of the sequence r(n) over the entire range of integers, i.e. n0,1,2,.o. (d) Find the energy of the sequence x(n)
9. Consider the following discrete-time exponential signal r(n) 75(-0.95)"u(n-3) (a) Plot r(n) over the range (b) Find...
5. (20 pts) Using Matlab, plot 8 periods of the following three signals for the first N harmonics, where N 2,8,32. That is, for N 2, you would plot an approximation of x(t) for just the ao, a, a ,a2, a 2 coefficients. (t) is periodic with period 3 and x(t) e for t e [0,3] » Oppenheim & Willsky: Figure P3.22(a) on pg. 255 » Oppenheim & Willsky: Figure P3.22 (e) on pg. 256 x(t) 2 4 x(t) 7-6...
4. Using Matlab: 4.1. Plot | H(n the following cases: (the frequency range: 0-20 KHz) a. a 0.2 0.5 ms. b. α-0.8 C.α-0.2 c-0.1 ms. c 0.5 ms. 4.2. Consider a signal whose Fourier Transform is given by: 50000ω Plot the transfer function l x(o) l and the output l Y(o) l in each of the above cases (stated in part 4.1) 4.3. Find the Inverse Fourier Transorms of| X(oand Y(o) , and generate the audio signals x and y...
Please slove using MATLAB
Problem 4 a) Determine the periods of the following two signals. b) Plot the signals between 0 program). sec and ST (T is period) using computer (attach your plot and 10 15 -15A-10
What’s the answer for (a) and (b) using Matlab?
Problem 1: Consider the following sequences x(n) = {-4, 5, 1,-2,-3, 0, 2, 45),-35ns4 y(n) = {6,-3,-1, 0, 8, 7,-2).-Isn 5 n(n) = {3, 2, 2,-1, 0,-2,5), 2sns8 The sample values of each of the above sequences outside the ranges specified are all zeros. Generate and plot the following sequences using MATLAB functions (c.g SIGSHIFT, SIGADD, fold, shift, etc.): (a) u(n) = x(n) + y(n-2) (b) s(n) =-y(n) + w(n +...
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
(MATLAB) Consider the following DT system y(n)-y(n-1)-y(n-2)=1/2x(n)+1/2x(n-1) to determine and plot the the response to the input x(n)=u(n), with initials y(-2)=1 & y(-1)=0.
MATLAB PROGRAM FOR THE FOLLOWING PROBLEM
Using Matlab write a program that will plot the pressure signal, the perceived pressure signal, the resistance and the output voltage as functions of time, for Problem 1.30 in the textbook. (B) Using Matlab show a plot with the output voltage range if we happen to know that the transfer function (gain) has an uncertainty of 15% and the time constant has an uncertainty of 10%. (Note: the solution of the problem is provided...
Using MATLAB functions, write a program to answer the
question
2) [6 pts] Consider the polynomial y x3-8x2 + 19x - 12 a) Create an anonymous function for y and use that for parts (b)-(d) b) Plot the function over the range 0 s x s 5. Use fplot. c) Find all zeros of the function d) Find the minimum point