Generate gaussian amplitude modulation
Y = amgauss(N) Y = amgauss(N, T0) Y = amgauss(N, T0, T)
a positive integer value: the number of points.
a positive scalar: time center (default : N/2).
a positive scalar: the time spreading (default : 2*sqrt(N)).
a real row vector: the signal.
amgauss generates a gaussian amplitude modulation centered on a time T0, and with a spread proportional to T. This modulation is scaled such that Y(T0)=1 and Y(T0+T/2) and Y(T0-T/2) are approximately equal to 0.5 .
With default parameters
z1 = amgauss(160); z2 = amgauss(160,90,40); z3 = amgauss(160,180,50); clf; plot([z1 z2 z3]) legend(["T0 = N/2, T = 2*sqrt(N)";"T0 = 90; T = 40";"T0 = 180; T = 50"]); | ![]() | ![]() |