error in bit shifting operation

2 visualizzazioni (ultimi 30 giorni)
Raza Ali
Raza Ali il 26 Feb 2014
Commentato: Raza Ali il 26 Feb 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]

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 26 Feb 2014
circshift(a,[0 -2])
  1 Commento
Raza Ali
Raza Ali il 26 Feb 2014
i have
a= [0 0 1 0 1 0 1 1]
i want this convert it in decimal value 43

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by