K=1;UpD=input('Enter value of alpha in radian ='); DwD=input('Enter value of gamma in radian =');for t=0:0.000001:2*pi if t<UpD y=0; elseif pi<t<DwD y=0; else y=K*sin(t) endendplot(t,y)gridtitle('Distorted signal wave')xlabel('Phase angle in degree')ylabel('y(wo)')
I am trying to plot clipped sinewave and I expect my output to be like in the figure below but instead I am getting blank
Best Answer