blob: 4fd4408e2cd49ee267f93f75afe14d276b387578 (
plain)
1
2
3
4
5
6
7
8
9
|
//example 1.2 //
// decimal to binary conversion //
clc
clear
disp('decimal equivalent of 00001110 is')
ans = bin2dec ('00001110')
// decimal equivalent of binary number //
disp (ans)
// answer in decimal form//
|