1 2 3 4 5 6 7 8 9
//example 1.13.c// clc //clears the screen// clear //clears all existing variables// a=dec2bin(2,12) b=dec2bin(7,4) d=100000+0111 disp(d,'BCD equivalent of 27 =')