Question

plot use mat lab -5<n<5 x1[n] =u[n-2]

plot use mat lab -5<n<5
x1[n] =u[n-2]

Homework Answers

Answer #1

Here is the Matlab code to plot . Copy and paste the code below in the MATLAB window and hit enter, MATLAB will give you the plot

n = -5 : 5;
y = heaviside(n-2);
stem(n, y)
axis([-10 10 -1 5])

Explanation of code

n = -5 : 5;:This line represents range of the horizontal axis time instants

y = heaviside(n-2);: This represents the shifted unit step sequence

stem(n, y): It is a command to discrete plot

axis([-10 10 -1 5]): It shows the range of horizontal and vertical axis

Thumbs me up, Please

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
PLEASE USE MAT LAB ONLY. THANK YOU (a) Create and plot the signals listed below and...
PLEASE USE MAT LAB ONLY. THANK YOU (a) Create and plot the signals listed below and save your Matlab code in a script file. i) Cosine signal of frequency 100 Hz over the range [0,0.1] seconds and samples spaced 10^- 4 seconds apart with a phase of pi/2 and an amplitude of 1.   PLEASE USE MAT LAB ONLY. THANK YOU ii) A square wave that oscillates between 0 and 1 every five samples, plot 3 periods of the waveform. iii)...
a. A digital signal x(n) is defined as x(n)=u(n+5)-u(n-5) Calculate the signal x1(n)=x(-2n-6) by direct method,...
a. A digital signal x(n) is defined as x(n)=u(n+5)-u(n-5) Calculate the signal x1(n)=x(-2n-6) by direct method, represent the signal in sequence form and sketch the signal. b. By performing combination of time shifting and time scaling of x(n) how x1(n) can be generated? Plot the waveforms in matlab for each step.
Please use Mat lab only. Thanks (b) Plotting Sunspots Load the Matlab data file, sunspot.dat, and...
Please use Mat lab only. Thanks (b) Plotting Sunspots Load the Matlab data file, sunspot.dat, and experiment with making plots and subplots. The file is a simple 288 row by 2 column matrix where the first column has consecutive years from 1700 until 1987 and the second column has the mean sunspot number for that year. Then we will construct year and spots vectors from the two columns and plot spots as a function of year. load sunspot.dat; year =...
draw the following (n+5)u(n) +(n-5)u(n-2) show the steps
draw the following (n+5)u(n) +(n-5)u(n-2) show the steps
Consider the utility function: u( x1 , x2 ) = 2√ x1 + 2√x2 a) Find...
Consider the utility function: u( x1 , x2 ) = 2√ x1 + 2√x2 a) Find the Marshallian demand function. Use ( p1 , p2 ) to denote the exogenous prices of x1 and x2 respectively. Use y to denote the consumer's disposable income. b) Find the indirect utility function and verify Roy's identity c) Find the expenditure function d) Find the Hicksian demand function
Consider the sequence (xn)n given by x1 = 2, x2 = 2 and xn+1 = 2(xn...
Consider the sequence (xn)n given by x1 = 2, x2 = 2 and xn+1 = 2(xn + xn−1). (a) Let u, w be the solutions of the equation x 2 −2x−2 = 0, so that x 2 −2x−2 = (x−u)(x−w). Show that u + w = 2 and uw = −2. (b) Possibly using (a) to aid your calculations, show that xn = u^n + w^n .
The utility function U(x1, x2) = lnx1 ^5 + lnx2^2 represents Cobb- Douglas preferences. Show if...
The utility function U(x1, x2) = lnx1 ^5 + lnx2^2 represents Cobb- Douglas preferences. Show if it is true or false. (without using graph)
Bundes preferences are given by the utility function u(x1+x2)=x1+x2. Suppose p2=3 and m=24. Show all working...
Bundes preferences are given by the utility function u(x1+x2)=x1+x2. Suppose p2=3 and m=24. Show all working and plot this consumers PCC when p1 drops continuously from 6 to 2.
Plot the values for the following N = 10, 10^2 , 10^3,...., 10^10 use log scale...
Plot the values for the following N = 10, 10^2 , 10^3,...., 10^10 use log scale for both axes. N^1/3 , 10N+3, 3N+10logN, N log N , N-5, N^3, 1.0001^N Not sure where to start
Let n ≥ 2 and x1, x2, ..., xn > 0 be such that x1 +...
Let n ≥ 2 and x1, x2, ..., xn > 0 be such that x1 + x2 + · · · + xn = 1. Prove that √ x1 + √ x2 + · · · + √ xn /√ n − 1 ≤ x1/ √ 1 − x1 + x2/ √ 1 − x2 + · · · + xn/ √ 1 − xn