필터 지우기
필터 지우기

Circular Shifting of fixed length

조회 수: 3 (최근 30일)
Kelly Howard
Kelly Howard 2016년 1월 26일
편집: Kelly Howard 2016년 1월 28일
hi guys, i would like to ask is there any command that can shift an n-point sequence by m points. Can u use fftshift or do i need to write a function ?

채택된 답변

Star Strider
Star Strider 2016년 1월 26일
there is a function, circshift that will do exactly what you want.
x_shift = circshift(x, [m 0]); % Column Vector
x_shift = circshift(x, [0 m]); % Row Vector
Note that ‘m’ can be either positive or negative, depending on the direction you want to do the shift.
  댓글 수: 2
Kelly Howard
Kelly Howard 2016년 1월 26일
Greatly appreciated for your help!
Star Strider
Star Strider 2016년 1월 26일
As always, my pleasure!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by