Signal Processing Toolbox    
chirp

Generate a 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 0, t1 is 1, and f1 is 100.

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

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.

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.

See Also
cos
Compute the cosine of vector/matrix elements (see the MATLAB documentation).
diric
Compute the Dirichlet or periodic sinc function.
gauspuls
Generate a Gaussian-modulated sinusoidal pulse.
pulstran
Generate a pulse train.
rectpuls
Generate a sampled aperiodic rectangle.
sawtooth
Generate a sawtooth or triangle wave.
sin
Compute the sine of vector/matrix elements (see the MATLAB documentation).
sinc
Compute the sinc function.
square
Generate a square wave.
tripuls
Generate a sampled aperiodic triangle.


 cheby2 cohere