shiftinfgand plotting descrete signal

12 views (last 30 days)
Given the discrete signal,
x[n] = {2
, − 2, 3, 4, − 4}
plot the following transformations
• x[n + 1]
• x[n − 2]

Answers (1)

Mahesh Taparia
Mahesh Taparia on 7 Feb 2020
Hi
You can as follow:
X=[2,-2,3,4,-4];
N=length(X);
X1=(-1:N-1-1);
X2=(2:N+2-1);
figure;stem(X1,X)
figure;stem(X2,X)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!