Member of the waveform generation class.
h = chirp(a)
h = chirp(a, b)
h = chirp(a, b, c)
h = chirp(a, b, c, d)
h = chirp(a, b, c, d, e)
h = chirp(a, b, c, d, e, f)
h = chirp(a, b, c, d, e, f, g)
Generates a swept-frequency cosine wave.
| Name | Description | ||||
| a | Specifies the sampling time. a is a real array. | ||||
| b | Specifies the start frequency of the chirp wave when t = 0. b is a positive real number. The default is 0. | ||||
| c | Specifies a time point. c is a positive number. The default is 1. | ||||
| d | Specifies the final frequency of the chirp wave when t = c. d is a positive real number. The default is 100. | ||||
| e | Specifies alternate sweep methods. e is a string that can be either 'linear', 'quadratic', or 'logarithmic'. The default is 'linear'. If you specify 'logarithmic', d must be larger than b. | ||||
| f | Specifies the initial phase in degree. f is a real number. The default is 0. | ||||
| g | If you specify 'quadratic', you also can specify a g input. g is a string that accepts the following values.
|
| Name | Description |
| h | Returns the sampled swept-frequency cosine wave. |
X = 0:0.01:2;
Y = chirp(X, 100, 1, 200, 'quadratic');
plot(X, Y)
diric
gauspuls
gmonopuls
pulstran
rectpuls
sawtooth
sinc
square
tripuls
vco