bit reversal in a Vector

2 ビュー (過去 30 日間)
Sadia
Sadia 2012 年 12 月 25 日
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??

採用された回答

Matt J
Matt J 2012 年 12 月 25 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by