gc2dec

Function to convert a gray coded sequence to a decimal sequence.
ダウンロード: 2K
更新 2005/8/12

ライセンスがありません

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

引用

Arjun Srinivasan Rangamani (2024). gc2dec (https://www.mathworks.com/matlabcentral/fileexchange/8275-gc2dec), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R13SP1
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersData Type Conversion についてさらに検索
謝辞

ヒントを与えたファイル: Genetic Algorithm to Optimise Schaffer's F6 Function

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0