Publisher review:dec2gc converts a decimal number to its equivalent gray code representation The function dec2gc converts a real positive numeric column vector to its gray code equivalent with a specified level of precision. Example:real_num = [34;78;123;7];%set of real numbers to be converted N = 7;%precision level for gray codinggray_code = dec2gc(real_num,N);Result:gray_code =0 1 1 0 0 1 11 1 0 1 0 0 11 0 0 0 1 1 00 0 0 0 1 0 0NOTE: N should be carefully chosen such that 2^N > max(dec) Requirements: ยท MATLAB Release: R13SP1
dec2gc is a Matlab script for Mathematics scripts design by Arjun Srinivasan Rangamani.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris