%% Cross Wigner-Ville Distribution of Chirps
% Generate a two-channel signal that consists of two chirps. The signal is sampled at 3 kHz for one second. The first chirp has an initial frequency of 400 Hz and reaches 800 Hz at the end of the sampling. The second chirp starts at 500 Hz and reaches 1000 Hz at the end. The second chirp has twice the amplitude of the first chirp.

fs = 3000;
t = (0:1/fs:1-1/fs)';

x1 = chirp(t,1400,t(end),800);
x2 = 2*chirp(t,200,t(end),1000);

%
% Store the signal as a timetable. Compute and plot the cross Wigner-Ville distribution of the two channels.

xt = timetable(seconds(t),x1,x2);

xwvd(xt(:,1),xt(:,2))

% Copyright 2018 The MathWorks, Inc.