Generate rectangular amplitude modulation
Y = amrect(N) Y = amrect(N, T0) Y = amrect(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.
amrect generates a rectangular amplitude modulation centered on a time T0, and with a spread proportional to T. This modulation is scaled such that Y(T0)=1.
clf z = amrect(160); subplot(221); plot(z); gca().data_bounds(2,2)=1.1; xtitle("T0 = N/2, T = 2*sqrt(N)"); z = amrect(160,90,40); subplot(222); plot(z); gca().data_bounds(2,2)=1.1; xtitle "T0 = 90; T = 40" z = amrect(160,180,70); subplot(223); plot(z); gca().data_bounds(2,1:2)=[180 1.1]; xtitle "T0 = 180; T = 50" | ![]() | ![]() |