Gray2bin conversion

10 次查看(过去 30 天)
sadiqa ilyas
sadiqa ilyas 2019-8-31
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

回答(1 个)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019-8-31
编辑:KALYAN ACHARJYA 2019-8-31
How to get graycode values for K?
K=[1 2 0 9];
K_1=dec2bin(K);
K_2=bin2dec(K_1)
  3 个评论
KALYAN ACHARJYA
KALYAN ACHARJYA 2019-8-31
编辑:KALYAN ACHARJYA 2019-8-31
What would be expected result?
Is this same as K ?
sadiqa ilyas
sadiqa ilyas 2019-8-31
It should be like 0001 1011 0000 1101

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by