1 2 3 4 5 6 7 8 9
//determine the voltage sin wave f=50 V=50 Vm=V*1.414 w=2*3.14*f t=(0:0.1:5*%pi)'; plot2d1('onn',t,[5*sin(t)]) disp('voltage equation v=70.7sin(314)t')