<< amgauss Choice of the Instantaneous Amplitude amtriang >>

Time Frequency Toolbox >> Time Frequency Toolbox > Choice of the Instantaneous Amplitude > amrect

amrect

Generate rectangular amplitude modulation.

Calling Sequence

Y = amrect(N)
Y = amrect(N,T0)
Y = amrect(N,T0,T)

Parameters

N :

a positive integer value: the number of points.

T0 :

a positive scalar: time center (default : N/2).

T :

a positive scalar: the time spreading (default : 2*sqrt(N)).

Y :

a real row vector: the signal.

Description

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.

Examples

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,2)=1.1;gca().data_bounds(2,1)=180;;
xtitle("T0 = 180; T = 50")

See also

Authors


Report an issue
<< amgauss Choice of the Instantaneous Amplitude amtriang >>