clear // // // //Variable declaration n1=1.563 //Core refractive index n2=1.498 //Cladding refractive index //Calculation delta=(n1-n2)/n1 //fractional index change //Result printf("\n fractional index change is %0.4f ",delta)