clear clc t=0:0.000001:0.04; f=50; fs=500; b=0; m=0; Amp=1; x=asin(sin(2*pi*fs*t)); x=Amp/max(x)*x+b; y=sin(2*pi*f*t); plot(t,x,'b',t,y,'g') grid on