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.
 - f0
 - The frequency at t = 0 (default: 0 Hz).
 - t1
 - The time at which to specify f1 (default: 1 sec).
 - f1
 - The frequency at t = t1 (default: 100 Hz).
 - shape
 - The shape of the chirp.
 - phase
 - The phase shift at t = 0 (default: 0 degrees).
 
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