1 2 3 4 5 6 7 8
//Example 5.4 clc; Vin=2; //Input Voltage Vr=10; //Reference Voltage t1=2; //given time t2=Vin*t1/Vr; disp(t2,'Time Interval t2 is')