Effacer les filtres
Effacer les filtres

Circular Shifting of fixed length

3 vues (au cours des 30 derniers jours)
Kelly Howard
Kelly Howard le 26 Jan 2016
Modifié(e) : Kelly Howard le 28 Jan 2016
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 ?

Réponse acceptée

Star Strider
Star Strider le 26 Jan 2016
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 commentaires
Kelly Howard
Kelly Howard le 26 Jan 2016
Greatly appreciated for your help!
Star Strider
Star Strider le 26 Jan 2016
As always, my pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by