Al momento, stai seguendo questo contributo
- Vedrai gli aggiornamenti nel tuo feed del contenuto seguito
- Potresti ricevere delle email a seconda delle tue preferenze per le comunicazioni
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 coding
gray_code = dec2gc(real_num,N);
Result:
gray_code =
0 1 1 0 0 1 1
1 1 0 1 0 0 1
1 0 0 0 1 1 0
0 0 0 0 1 0 0
NOTE: N should be carefully chosen such that 2^N > max(dec)
Cita come
Arjun Srinivasan Rangamani (2026). dec2gc.m (https://it.mathworks.com/matlabcentral/fileexchange/8051-dec2gc-m), MATLAB Central File Exchange. Recuperato .
Riconoscimenti
Ispirato: Walsh Functions, Genetic Algorithm to Optimise Schaffer's F6 Function
Informazioni generali
- Versione 1.0.0.0 (735 Byte)
-
Nessuna licenza
Compatibilità della release di MATLAB
- Compatibile con qualsiasi release
Compatibilità della piattaforma
- Windows
- macOS
- Linux
| Versione | Pubblicato | Note della release | Action |
|---|---|---|---|
| 1.0.0.0 | Corrected for minor adujustments |
