1 2 3 4 5 6 7
//Ex19_6 Pg-959 clc dec=9 //decimal input bin=dec2bin(dec) //binary output disp("The binary equivalent of 9 is") disp(bin)