bit reversal in a Vector

i want to take a NOT of one bit in a vector and then restore that bit in the same vector.e.g.
a=[0 1 1 0]
what i need is:
a=[0 0 1 0]
Any ideas??

 Respuesta aceptada

Más respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de Dic. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by