필터 지우기
필터 지우기

How to shift a signal to left ?

조회 수: 1 (최근 30일)
Negar
Negar 2011년 4월 5일
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...

답변 (1개)

Titus Edelhofer
Titus Edelhofer 2011년 4월 5일
Hi Negar,
circshift is your friend:
circshift(x1, [1 9])
Titus
  댓글 수: 2
Negar
Negar 2011년 4월 5일
Thanks a lot Titus, but couls you please tell me how did you write that? I read the Help right now, but I can't understand the examples ..
I would like to learn it, in order to use it in future..
Jan
Jan 2011년 4월 5일
CIRCSHIFT does this: shifted = x1([(9+1):end, 1:9])

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by