1 2 3 4 5 6 7 8 9 10
//Example 11// Ch 3 clc; clear; close; // given data I = 1; I0 = 6; x=20;//in cm u = -(1/x)*log(I/I0); printf("absorption coefficient %f cm^-1",u)