Signal Processing Toolbox Previous page   Next Page
chirp

Swept-frequency cosine

Syntax

Description

y = chirp(t,f0,t1,f1) generates samples of a linear swept-frequency cosine signal at the time instances defined in array t, where f0 is the instantaneous frequency at time 0, and f1 is the instantaneous frequency at time t1. f0 and f1 are both in hertz. If unspecified, f0 is e-6 for logarithmic chirp and 0 for all other methods, t1 is 1, and f1 is 100.

Y = CHIRP(T,F0,T1,F1,'method') specifies alternative sweep method options, where method can be:

Each of the above methods can be entered as 'li', 'q', and 'lo', respectively.

y = chirp(t,f0,t1,f1,'method',phi) allows an initial phase phi to be specified in degrees. If unspecified, phi is 0. Default values are substituted for empty or omitted trailing input arguments.

y = chirp(t,f0,t1,f1,'quadratic',phi,'shape') specifies the shape of the quadratic swept-frequency signal's spectrogram. shape is either concave or convex, which describes the shape of the parabola in the positive frequency axis. If shape is omitted, the default is convex for downsweep (f0 > f1) and is concave for upsweep (ff1).

In the following illustration are the shapes of a convex downsweep and a concave upsweep. The convex downsweep is shaped like the profile of a portion of an inverted bowl. It sweeps from high to low frequency. The concave upsweep is shaped like the profile of a portion an upright bowl. It sweeps from low to high frequency.

Examples

Example 1

Compute the spectrogram of a chirp with linear instantaneous frequency deviation:

Example 2

Compute the spectrogram of a chirp with quadratic instantaneous frequency deviation:

Example 3

Compute the spectrogram of a convex quadratic chirp:

Example 4

Compute the spectrogram of a concave quadratic chirp:

Example 5

Compute the spectrogram of a logarithmic chirp:

See Also

cos, diric, gauspuls, pulstran, rectpuls, sawtooth, sin, sinc, square, tripuls


Previous page  cheby2 conv Next page

© 1994-2005 The MathWorks, Inc.