1 2 3 4 5
clc; vpp=25; //peak to peak voltage in volt vp=vpp/2; //calculating peak value in volt rms=vp/sqrt(2); //calculating rms value disp(rms,"Rms value in volt = "); //displaying result