how to convert grey-code to binary code & vice-versa?

how can I convert grey to binary code? If, A=[00;01;11;10]; then, after convertion, B=[00;01;10;11]; ?????????????????????????????????????????

1 件のコメント

Walter Roberson
Walter Roberson 2012 年 10 月 10 日
There are multiple grey codes; to choose one of them requires adding at least one constraint (2 constraints is easier)

サインインしてコメントする。

 採用された回答

Matt Fig
Matt Fig 2012 年 10 月 10 日

1 投票

B = sort(A)

カテゴリ

ヘルプ センター および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by