error in bit shifting operation

3 visualizaciones (últimos 30 días)
Raza Ali
Raza Ali el 26 de Feb. de 2014
Comentada: Raza Ali el 26 de Feb. de 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]

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by