1 2 3 4 5 6
//example 2.1// //decimal to binary conversion// ans=bin2dec('11111') //decimal equivalent of binary number// disp(ans) //answer in decimal form//