N = 247; N2 = dec2bin(N); //binary equivalent of N N8 = dec2oct(N); //octal equivalent of N disp(N2, "binary equivalent of 247 = ") disp(N8, "octal equivalent of 247 = ")