フィルターのクリア

Circular Shifting of fixed length

2 ビュー (過去 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 Center および File ExchangeCorrelation and Convolution についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by