How to shift a signal to left ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello all ,
I have a binary stochastic signal,
N=100; x1 = 2*(rand(1,N)>0.5)-1;
and I want to shift it to the left by 9 units.. how can I do that? Tried to find some hints in MATLAB HELP but couldn't find any useful commands,,
Thanks a lot...
0 Kommentare
Antworten (1)
Titus Edelhofer
am 5 Apr. 2011
Hi Negar,
circshift is your friend:
circshift(x1, [1 9])
Titus
2 Kommentare
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!