time shifting of Discrete Signals
73 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Miza
am 23 Feb. 2011
Beantwortet: Sk Group
am 27 Okt. 2021
I have the following matrix
x=[2 3 5 4 6 4];
with index at 5 i-e n=0 at value 5.
n is sampling scale value (-----,3,-2,-1,0,1,2,3----)
I have to plot this signal x(n) on time axis n,
then I have to do the following operations,
x[-n],
x[-n+4]
x[-n-4]
x[n-4]
x[n].u[n-2]
x[n].impulse[n+2]
x[n].impulse[n-2]
0 Kommentare
Akzeptierte Antwort
Saneem Ahmed
am 23 Feb. 2011
to plot discrete signal it is always better to use stem()
and for the first question you can use ,for x[n]
n=-2:3;
stem(n,x);
for x[-n];
n=-n;
stem(n,x);
similarly you can do till x[n-4];
1 Kommentar
Weitere Antworten (1)
Sk Group
am 27 Okt. 2021
For detailed post and complete code visit: https://www.swebllc.com/time-shifting-in-matlab-code-output/
0 Kommentare
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!