chirp

Generate a chirp signal.

Syntax

c = chirp(t)

c = chirp(t, f0)

c = chirp(t, f0, t1)

c = chirp(t, f0, t1, f1)

c = chirp(t, f0, t1, f1, shape)

c = chirp(t, f0, t1, f1, shape, phase)

Inputs

t
The times at which to evaluate the function.
Dimension: vector
f0
The frequency at t = 0 (default: 0 Hz).
Dimension: scalar
t1
The time at which to specify f1 (default: 1 sec).
Dimension: scalar
f1
The frequency at t = t1 (default: 100 Hz).
Dimension: scalar
shape
The shape of the chirp.
Type: string
The options are:
  • 'linear' (default)
  • 'quadratic'
  • 'logarithmic'
phase
The phase shift at t = 0 (default: 0 degrees).
Dimension: scalar

Outputs

c
The chirp signal values.

Example

Plot a linear chirp signal.

t = [0:1:500]/250;
c = chirp(t, 5, 1, 10, 'linear');
plot (t, c);
xlabel('time');
ylabel('amplitude');


Figure 1. chirp figure 1

Comments