blob: 880188e561f6b738a746781439954e191d29ca1b (
plain)
1
2
3
4
5
|
//Example 1.7 Conversion from decimal number to binary number.
clc;
x = dec2bin(746); // binary equivalent of decimal number
disp('The binary number is = ');
disp(x) // answer in binary form
|