error in bit shifting operation

4 vues (au cours des 30 derniers jours)
Raza Ali
Raza Ali le 26 Fév 2014
Commenté : Raza Ali le 26 Fév 2014
a=[1 0 0 0 0 0 1 0 1]
i want to shift these bits according to my requirement
like i want them to shift left side two bits
b=[0 0 0 0 1 0 1 1 0]

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 26 Fév 2014
circshift(a,[0 -2])
  1 commentaire
Raza Ali
Raza Ali le 26 Fév 2014
i have
a= [0 0 1 0 1 0 1 1]
i want this convert it in decimal value 43

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices 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