blob: 4f44db8df815852b06169bbfc5a4cfa97f3e9ecd (
plain)
1
2
3
4
5
6
7
8
9
|
//example 1.15.b//
//sequence of gray numbers//
clc
//clears the screen//
clear
//clears all existing variables//
a=1111;
//for gray to binary, first no (MSB) remains the same, second number is addition of first and second of binary ignoring the carry and so on.//
disp('gray to binary of 1111 =1011')
|