clc;clear; //Example 25.13 //conversion of binary to decimal //given values X=10.101;//binary number //calculation Z=(1*2^1)+(0*2^0)+(1*2^-1)+(0*2^-2)+(1*2^-3); disp(Z,'decimal equivalent of the given binary number is')