1 2 3 4 5
Ton=0.000005; Toff=0.000010; Vin=24; Vave=Vin*(Ton/(Ton+Toff)); disp('V',Vave,"Vave=");//The answers vary due to round off error