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

12 views (last 30 days)
how can I convert grey to binary code? If, A=[00;01;11;10]; then, after convertion, B=[00;01;10;11]; ?????????????????????????????????????????
  1 Comment
Walter Roberson
Walter Roberson on 10 Oct 2012
There are multiple grey codes; to choose one of them requires adding at least one constraint (2 constraints is easier)

Sign in to comment.

Accepted Answer

Matt Fig
Matt Fig on 10 Oct 2012
B = sort(A)

More Answers (1)

Image Analyst
Image Analyst on 10 Oct 2012

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!