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