1 2 3 4 5 6
clc; Voutpk=8; //volt Vf=1.8; //volt If=0.02; //Ampere Rs=(Voutpk-Vf)/If; //Ohm//v=r*i disp('Ohm',Rs,"Rs=");