error in bit shifting operation

3 Ansichten (letzte 30 Tage)
Raza Ali
Raza Ali am 26 Feb. 2014
Kommentiert: Raza Ali am 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]

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by