Gray2bin conversion

13 vues (au cours des 30 derniers jours)
sadiqa ilyas
sadiqa ilyas le 31 Août 2019
Commenté : sadiqa ilyas le 31 Août 2019
Hi I to gant to convert binary to gray.
K=[1 2 0 9];
K_1=dec2bin(K);
K_2=bin2gray(K_1);
The results of K_1 is
'0001'
'0010'
'0000'
'1001'
result of K_2 is
'0001'
How to get graycode values for K

Réponses (1)

KALYAN ACHARJYA
KALYAN ACHARJYA le 31 Août 2019
Modifié(e) : KALYAN ACHARJYA le 31 Août 2019
How to get graycode values for K?
K=[1 2 0 9];
K_1=dec2bin(K);
K_2=bin2dec(K_1)
  3 commentaires
KALYAN ACHARJYA
KALYAN ACHARJYA le 31 Août 2019
Modifié(e) : KALYAN ACHARJYA le 31 Août 2019
What would be expected result?
Is this same as K ?
sadiqa ilyas
sadiqa ilyas le 31 Août 2019
It should be like 0001 1011 0000 1101

Connectez-vous pour commenter.

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by