shiftinfgand plotting descrete signal
Show older comments
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
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)
Categories
Find more on Smoothing and Denoising in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!