function [yy,t] = doublechirp;
% [yy,tt] = doublechirp;
%
% Creates a double chirp function as seen on 
%
%	ce.caltech.edu/~case/wv
%
% Modify the values in this file to create chirps of different slopes/amplitudes.
% Or re-write this function to take the following arguments as input.
%
%	-Case

A1=1; A2=1; T=.3;
ft1=200; f01=100;
ft2=400; f02=300;


df1dt=(ft1-f01)/T;
df2dt=(ft2-f02)/T;

t=[0:.001:.3];
yy=A1*cos(2*pi*(f01 + .5*df1dt*t).*t) + A2*cos(2*pi*(f02 + .5*df2dt*t).*t);

return;
