gc2dec

Function to convert a gray coded sequence to a decimal sequence.

You are now following this Submission

This function converts a gray coded string to its equivalent decimal representation. It accepts rows of gray coded string and returns the equivalent decimal sequence as a column vector.

Example:

>>g = [1 0 0 1 1;0 0 0 1 1; 0 1 1 0 1];
>>gc2dec(g)

ans =

29
2
9

Cite As

Arjun Srinivasan Rangamani (2026). gc2dec (https://in.mathworks.com/matlabcentral/fileexchange/8275-gc2dec), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0